DOP-C02 Exam Question 96

A company uses AWS Secrets Manager to store a set of sensitive API keys that an AWS Lambda function uses. When the Lambda function is invoked, the Lambda function retrieves the API keys and makes an API call to an external service. The Secrets Manager secret is encrypted with the default AWS Key Management Service (AWS KMS) key.
A DevOps engineer needs to update the infrastructure to ensure that only the Lambda function's execution role can access the values in Secrets Manager. The solution must apply the principle of least privilege.
Which combination of steps will meet these requirements? (Select TWO.)
  • DOP-C02 Exam Question 97

    A company uses Amazon EC2 as its primary compute platform. A DevOps team wants to audit the company's EC2 instances to check whether any prohibited applications have been installed on the EC2 instances.
    Which solution will meet these requirements with the MOST operational efficiency?
  • DOP-C02 Exam Question 98

    A company manages an application that stores logs in Amazon CloudWatch Logs. The company wants to archive the logs to an Amazon S3 bucket Logs are rarely accessed after 90 days and must be retained tor 10 years.
    Which combination of steps should a DevOps engineer take to meet these requirements? (Select TWO.)
  • DOP-C02 Exam Question 99

    A large enterprise is deploying a web application on AWS. The application runs on Amazon EC2 instances behind an Application Load Balancer. The instances run in an Auto Scaling group across multiple Availability Zones. The application stores data in an Amazon RDS for Oracle DB instance and Amazon DynamoDB.
    There are separate environments tor development testing and production.
    What is the MOST secure and flexible way to obtain password credentials during deployment?
  • DOP-C02 Exam Question 100

    A company has multiple AWS accounts. The company uses AWS IAM Identity Center (AWS Single Sign- On) that is integrated with AWS Toolkit for Microsoft Azure DevOps. The attributes for access control feature is enabled in IAM Identity Center.
    The attribute mapping list contains two entries. The department key is mapped to ${path:enterprise.
    department}. The costCenter key is mapped to ${path:enterprise.costCenter}.
    All existing Amazon EC2 instances have a department tag that corresponds to three company departments (d1, d2, d3). A DevOps engineer must create policies based on the matching attributes. The policies must minimize administrative effort and must grant each Azure AD user access to only the EC2 instances that are tagged with the user's respective department name.
    Which condition key should the DevOps engineer include in the custom permissions policies to meet these requirements?