πŸ”

SCS-C02 β€” questions

Page 5 of 16 Β· 307 total questions.

Topic 1 Β· Question 81

A company uses AWS Organizations. The company wants to implement short-term credentials for third-party AWS accounts to use to access accounts within the company's organization. Access is for the AWS Management Console and third-party software-as-a-service (SaaS) applications. Trust must be enhanced to prevent two external accounts from using the same credentials. The solution must require the least possible operational effort. Which solution will meet these requirements?

  • AUse a bearer token authentication with OAuth or SAML to manage and share a central Amazon Cognito user pool across multiple Amazon API Gateway APIs.
  • BImplement AWS IAM Identity Center (AWS Single Sign-On), and use an identity source of choice. Grant access to users and groups from other accounts by using permission sets that are assigned by account.
  • CCreate a unique IAM role for each external account. Create a trust policy Use AWS Secrets Manager to create a random external key.
  • DCreate a unique IAM role for each external account. Create a trust policy that includes a condition that uses the sts:ExternalId condition key. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a unique IAM role for each external account. Create a trust policy that includes a condition that uses the sts:ExternalId condition key.

Explanation

An IAM role grants temporary, least-privilege permissions to AWS resources without long-term credentials. AWS IAM controls authenticated and authorized access to AWS resources with fine-grained policies.

Topic 1 Β· Question 82

A company is evaluating its security posture. In the past, the company has observed issues with specific hosts and host header combinations that affected the company's business. The company has configured AWS WAF web ACLs as an initial step to mitigate these issues. The company must create a log analysis solution for the AWS WAF web ACLs to monitor problematic activity. The company wants to process all the AWS WAF logs in a central location. The company must have the ability to filter out requests based on specific hosts. A security engineer starts to enable access logging for the AWS WAF web ACLs. What should the security engineer do next to meet these requirements with the MOST operational efficiency?

  • ASpecify Amazon Redshift as the destination for the access logs. Deploy the Amazon Athena Redshift connector. Use Athena to query the data from Amazon Redshift and to filter the logs by host.
  • BSpecify Amazon CloudWatch as the destination for the access logs. Use Amazon CloudWatch Logs Insights to design a query to filter the logs by host. (correct answer)
  • CSpecify Amazon CloudWatch as the destination for the access logs. Export the CloudWatch logs to an Amazon S3 bucket. Use Amazon Athena to query the logs and to filter the logs by host.
  • DSpecify Amazon CloudWatch as the destination for the access logs. Use Amazon Redshift Spectrum to query the logs and to filter the logs by host.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Specify Amazon CloudWatch as the destination for the access logs. Use Amazon CloudWatch Logs Insights to design a query to filter the logs by host.

Explanation

Amazon CloudWatch collects metrics, logs and alarms to monitor and react to operational health.

Topic 1 Β· Question 83 Β· Select all that apply

A security engineer is trying to use Amazon EC2 Image Builder to create an image of an EC2 instance. The security engineer has configured the pipeline to send logs to an Amazon S3 bucket. When the security engineer runs the pipeline, the build fails with the following error: "AccessDenied: Access Denied status code: 403". The security engineer must resolve the error by implementing a solution that complies with best practices for least privilege access. Which combination of steps will meet these requirements? (Choose two.)

  • AEnsure that the following policies are attached to the IAM role that the security engineer is usingΒ·EC2InstanceProfileForImageBuilder, EC2InstanceProfileForImageBuilderECRContainerBuilds, and AmazonSSMManagedInstanceCore.
  • BEnsure that the following policies are attached to the instance profile for the EC2 instance: EC2InstanceProfileForImageBuilder, EC2InstanceProfileForImageBuilderECRContainerBuilds, and AmazonSSMManagedInstanceCore. (correct answer)
  • CEnsure that the AWSImageBuilderFullAccess policy is attached to the instance profile for the EC2 instance.
  • DEnsure that the security engineer's IAM role has the s3:PutObject permission for the S3 bucket.
  • EEnsure that the instance profile for the EC2 instance has the s3:PutObject permission for the S3 bucket. (correct answer)
Reveal answer & explanation
Correct answer: B, E

The correct answer is B, E. Option B: Ensure that the following policies are attached to the instance profile for the EC2 instance: EC2InstanceProfileForImageBuilder, EC2InstanceProfileForImageBuilderECRContainerBuilds, and AmazonSSMManagedInstanceCore. Option E: Ensure that the instance profile for the EC2 instance has the s3:PutObject permission for the S3 bucket.

Explanation

Amazon EC2 provides resizable virtual servers when you need full control of the operating system. Amazon S3 provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 84

A security engineer must use AWS Key Management Service (AWS KMS) to design a key management solution for a set of Amazon Elastic Block Store (Amazon EBS) volumes that contain sensitive data. The solution needs to ensure that the key material automatically expires in 90 days. Which solution meets these criteria?

  • AA customer managed key that uses customer provided key material (correct answer)
  • BA customer managed key that uses AWS provided key material
  • CAn AWS managed key
  • DOperating system encryption that uses GnuPG
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: A customer managed key that uses customer provided key material.

Topic 1 Β· Question 85 Β· Select all that apply

A security engineer is building a Java application that is running on Amazon EC2. The application communicates with an Amazon RDS instance and authenticates with a user name and password. Which combination of steps can the engineer take to protect the credentials and minimize downtime when the credentials are rotated? (Choose two.)

  • AHave a database administrator encrypt the credentials and store the ciphertext in Amazon S3. Grant permission to the instance role associated with the EC2 instance to read the object and decrypt the ciphertext.
  • BConfigure a scheduled job that updates the credential in AWS Systems Manager Parameter Store and notifies the engineer that the application needs to be restarted.
  • CConfigure automatic rotation of credentials in AWS Secrets Manager. (correct answer)
  • DStore the credential in an encrypted string parameter in AWS Systems Manager Parameter Store. Grant permission to the instance role associated with the EC2 instance to access the parameter and the AWS KMS key that is used to encrypt it.
  • EConfigure the Java application to catch a connection failure and make a call to AWS Secrets Manager to retrieve updated credentials when the password is rotated. Grant permission to the instance role associated with the EC2 instance to access Secrets Manager. (correct answer)
Reveal answer & explanation
Correct answer: C, E

The correct answer is C, E. Option C: Configure automatic rotation of credentials in AWS Secrets Manager. Option E: Configure the Java application to catch a connection failure and make a call to AWS Secrets Manager to retrieve updated credentials when the password is rotated. Grant permission to the instance role associated with t...

Explanation

Amazon EC2 provides resizable virtual servers when you need full control of the operating system. AWS Secrets Manager stores and automatically rotates secrets such as database credentials. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 86 Β· Select all that apply

A company uses SAML federation to grant users access to AWS accounts. A company workload that is in an isolated AWS account runs on immutable infrastructure with no human access to Amazon EC2. The company requires a specialized user known as a break glass user to have access to the workload AWS account and instances in the case of SAML errors. A recent audit discovered that the company did not create the break glass user for the AWS account that contains the workload. The company must create the break glass user. The company must log any activities of the break glass user and send the logs to a security team. Which combination of solutions will meet these requirements? (Choose two.)

  • ACreate a local individual break glass IAM user for the security team. Create a trail in AWS CloudTrail that has Amazon CloudWatch Logs turned on. Use Amazon EventBridge to monitor local user activities. (correct answer)
  • BCreate a break glass EC2 key pair for the AWS account. Provide the key pair to the security team. Use AWS CloudTrail to monitor key pair activity. Send notifications to the security team by using Amazon Simple Notification Service (Amazon SNS).
  • CCreate a break glass IAM role for the account. Allow security team members to perform the AssumeRoleWithSAML operation. Create an AWS CloudTrail trail that has Amazon CloudWatch Logs turned on. Use Amazon EventBridge to monitor security team activities.
  • DCreate a local individual break glass IAM user on the operating system level of each workload instance. Configure unrestricted security groups on the instances to grant access to the break glass IAM users.
  • EConfigure AWS Systems Manager Session Manager for Amazon EC2. Configure an AWS CloudTrail filter based on Session Manager. Send the results to an Amazon Simple Notification Service (Amazon SNS) topic. (correct answer)
Reveal answer & explanation
Correct answer: A, E

The correct answer is A, E. Option A: Create a local individual break glass IAM user for the security team. Create a trail in AWS CloudTrail that has Amazon CloudWatch Logs turned on. Use Amazon EventBridge to monitor local user activities. Option E: Configure AWS Systems Manager Session Manager for Amazon EC2. Configure an AWS CloudTrail filter based on Session Manager. Send the results to an Amazon Simple Notification Service (Amazon SNS) topic.

Explanation

Amazon EC2 provides resizable virtual servers when you need full control of the operating system. Amazon SNS is a managed pub/sub service for fan-out notifications to many subscribers. Amazon EventBridge routes events between services with rules, enabling event-driven, decoupled architectures.

Topic 1 Β· Question 87 Β· Select all that apply

A security engineer is working with a product team building a web application on AWS. The application uses Amazon S3 to host the static content, Amazon API Gateway to provide RESTful services, and Amazon DynamoDB as the backend data store. The users already exist in a directory that is exposed through a SAML identity provider. Which combination of the following actions should the engineer take to allow users to be authenticated into the web application and call APIs? (Choose three.)

  • ACreate a custom authorization service using AWS Lambda.
  • BConfigure a SAML identity provider in Amazon Cognito to map attributes to the Amazon Cognito user pool attributes. (correct answer)
  • CConfigure the SAML identity provider to add the Amazon Cognito user pool as a relying party. (correct answer)
  • DConfigure an Amazon Cognito identity pool to integrate with social login providers.
  • EUpdate DynamoDB to store the user email addresses and passwords.
  • FUpdate API Gateway to use a COGNITO_USER_POOLS authorizer. (correct answer)
Reveal answer & explanation
Correct answer: B, C, F

The correct answer is B, C, F. Option B: Configure a SAML identity provider in Amazon Cognito to map attributes to the Amazon Cognito user pool attributes. Option C: Configure the SAML identity provider to add the Amazon Cognito user pool as a relying party. Option F: Update API Gateway to use a COGNITO_USER_POOLS authorizer.

Explanation

Amazon API Gateway is a fully managed front door for creating and securing APIs at scale. Amazon Cognito manages user sign-up, sign-in and federated identity for applications. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 88 Β· Select all that apply

A company needs to improve its ability to identify and prevent IAM policies that grant public access or cross-account access to resources. The company has implemented AWS Organizations and has started using AWS Identity and Access Management Access Analyzer to refine overly broad access to accounts in the organization. A security engineer must automate a response in the company's organization for any newly created policies that are overly permissive. The automation must remediate external access and must notify the company's security team. Which combination of steps should the security engineer take to meet these requirements? (Choose three.)

  • ACreate an AWS Step Functions state machine that checks the resource type in the finding and adds an explicit Deny statement in the trust policy for the IAM role. Configure the state machine to publish a notification to an Amazon Simple Notification Service (Amazon SNS) topic. (correct answer)
  • BCreate an AWS Batch job that forwards any resource type findings to an AWS Lambda function. Configure the Lambda function to add an explicit Deny statement in the trust policy for the IAM role. Configure the AWS Batch job to publish a notification to an Amazon Simple Notification Service (Amazon SNS) topic.
  • CIn Amazon EventBridge, create an event rule that matches active IAM Access Analyzer findings and invokes AWS Step Functions for resolution. (correct answer)
  • DIn Amazon CloudWatch, create a metric filter that matches active IAM Access Analyzer findings and invokes AWS Batch for resolution.
  • ECreate an Amazon Simple Queue Service (Amazon SQS) queue. Configure the queue to forward a notification to the security team that an external principal has been granted access to the specific IAM role and has been blocked.
  • FCreate an Amazon Simple Notification Service (Amazon SNS) topic for external or cross-account access notices. Subscribe the security team's email addresses to the topic. (correct answer)
Reveal answer & explanation
Correct answer: A, C, F

The correct answer is A, C, F. Option A: Create an AWS Step Functions state machine that checks the resource type in the finding and adds an explicit Deny statement in the trust policy for the IAM role. Configure the state machine to publish a notification t... Option C: In Amazon EventBridge, create an event rule that matches active IAM Access Analyzer findings and invokes AWS Step Functions for resolution. Option F: Create an Amazon Simple Notification Service (Amazon SNS) topic for external or cross-account access notices. Subscribe the security team's email addresses to the topic.

Explanation

Amazon SNS is a managed pub/sub service for fan-out notifications to many subscribers. Amazon EventBridge routes events between services with rules, enabling event-driven, decoupled architectures. AWS Step Functions coordinates multi-step workflows as a managed state machine.

Topic 1 Β· Question 89

A security engineer is configuring a mechanism to send an alert when three or more failed sign-in attempts to the AWS Management Console occur during a 5-minute period. The security engineer creates a trail in AWS CloudTrail to assist in this work. Which solution will meet these requirements?

  • AIn CloudTrail, turn on Insights events on the trail. Configure an alarm on the insight with eventName matching ConsoleLogin and errorMessage matching "Failed authentication''. Configure a threshold of 3 and a period of 5 minutes.
  • BConfigure CloudTrail to send events to Amazon CloudWatch Logs. Create a metric filter for the relevant log group. Create a filter pattern with eventName matching ConsoleLogin and errorMessage matching "Failed authentication". Create a CloudWatch alarm with a threshold of 3 and a period of 5 minutes. (correct answer)
  • CCreate an Amazon Athena table from the CloudTrail events. Run a query for eventName matching ConsoleLogin and for errorMessage matching "Failed authentication". Create a notification action from the query to send an Amazon Simple Notification Service (Amazon SNS) notification when the count equals 3 within a period of 5 minutes.
  • DIn AWS Identity and Access Management Access Analyzer, create a new analyzer. Configure the analyzer to send an Amazon Simple Notification Service (Amazon SNS) notification when a failed sign-in event occurs 3 times for any IAM user within a period of 5 minutes.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure CloudTrail to send events to Amazon CloudWatch Logs. Create a metric filter for the relevant log group. Create a filter pattern with eventName matching ConsoleLogin and errorMessage matching "Failed authenti...

Explanation

Amazon CloudWatch collects metrics, logs and alarms to monitor and react to operational health. AWS CloudTrail records API activity for auditing and governance. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 90 Β· Select all that apply

A company's security engineer is developing an incident response plan to detect suspicious activity in an AWS account for VPC hosted resources. The security engineer needs to provide visibility for as many AWS Regions as possible. Which combination of steps will meet these requirements MOST cost-effectively? (Choose two.)

  • ATurn on VPC Flow Logs for all VPCs in the account.
  • BActivate Amazon GuardDuty across all AWS Regions. (correct answer)
  • CActivate Amazon Detective across all AWS Regions.
  • DCreate an Amazon Simple Notification Service (Amazon SNS) topic. Create an Amazon EventBridge rule that responds to findings and publishes the findings to the SNS topic. (correct answer)
  • ECreate an AWS Lambda function. Create an Amazon EventBridge rule that invokes the Lambda function to publish findings to Amazon Simple Email Service (Amazon SES).
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: Activate Amazon GuardDuty across all AWS Regions. Option D: Create an Amazon Simple Notification Service (Amazon SNS) topic. Create an Amazon EventBridge rule that responds to findings and publishes the findings to the SNS topic.

Explanation

Amazon SNS is a managed pub/sub service for fan-out notifications to many subscribers. Amazon EventBridge routes events between services with rules, enabling event-driven, decoupled architectures. Amazon GuardDuty continuously monitors for threats and malicious activity. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 91 Β· Select all that apply

A company stores images for a website in an Amazon S3 bucket. The company is using Amazon CloudFront to serve the images to end users. The company recently discovered that the images are being accessed from countries where the company does not have a distribution license. Which actions should the company take to secure the images to limit their distribution? (Choose two.)

  • AUpdate the S3 bucket policy to restrict access to a CloudFront origin access control (OAC). (correct answer)
  • BUpdate the website DNS record to use an Amazon Route 53 geolocation record deny list of countries where the company lacks a license.
  • CAdd a CloudFront geo restriction deny list of countries where the company lacks a license. (correct answer)
  • DUpdate the S3 bucket policy with a deny list of countries where the company lacks a license.
  • EEnable the Restrict Viewer Access option in CloudFront to create a deny list of countries where the company lacks a license.
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Update the S3 bucket policy to restrict access to a CloudFront origin access control (OAC). Option C: Add a CloudFront geo restriction deny list of countries where the company lacks a license.

Explanation

Amazon S3 provides durable, scalable object storage that is fully managed. Amazon CloudFront caches content at edge locations to reduce latency and offload origins.

Topic 1 Β· Question 92

A company has deployed servers on Amazon EC2 instances in a VPC. External vendors access these servers over the internet. Recently, the company deployed a new application on EC2 instances in a new CIDR range. The company needs to make the application available to the vendors. A security engineer verified that the associated security groups and network ACLs are allowing the required ports in the inbound direction. However, the vendors cannot connect to the application. Which solution will provide the vendors access to the application?

  • AModify the security group that is associated with the EC2 instances to have the same outbound rules as inbound rules.
  • BModify the network ACL that is associated with the CIDR range to allow outbound traffic to ephemeral ports. (correct answer)
  • CModify the inbound rules on the internet gateway to allow the required ports.
  • DModify the network ACL that is associated with the CIDR range to have the same outbound rules as inbound rules.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Modify the network ACL that is associated with the CIDR range to allow outbound traffic to ephemeral ports.

Topic 1 Β· Question 93

A company uses infrastructure as code (IaC) to create AWS infrastructure. The company writes the code as AWS CloudFormation templates to deploy the infrastructure. The company has an existing CI/CD pipeline that the company can use to deploy these templates. After a recent security audit, the company decides to adopt a policy-as-code approach to improve the company's security posture on AWS. The company must prevent the deployment of any infrastructure that would violate a security policy, such as an unencrypted Amazon Elastic Block Store (Amazon EBS) volume. Which solution will meet these requirements?

  • ATurn on AWS Trusted Advisor. Configure security notifications as webhooks in the preferences section of the CI/CD pipeline.
  • BTurn on AWS Config. Use the prebuilt rules or customized rules. Subscribe tile CI/CD pipeline to an Amazon Simple Notification Service (Amazon SNS) topic that receives notifications from AWS Config.
  • CCreate rule sets in AWS CloudFormation Guard. Run validation checks for CloudFormation templates as a phase of the CI/CD process. (correct answer)
  • DCreate rule sets as SCPs. Integrate the SCPs as a part of validation control in a phase of the CI/CD process.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create rule sets in AWS CloudFormation Guard. Run validation checks for CloudFormation templates as a phase of the CI/CD process.

Explanation

AWS CloudFormation provisions infrastructure as code repeatably.

Topic 1 Β· Question 94

A company is running an Amazon RDS for MySQL DB instance in a VPC. The VPC must not send or receive network traffic through the internet. A security engineer wants to use AWS Secrets Manager to rotate the DB instance credentials automatically. Because of a security policy, the security engineer cannot use the standard AWS Lambda function that Secrets Manager provides to rotate the credentials. The security engineer deploys a custom Lambda function in the VPC. The custom Lambda function will be responsible for rotating the secret in Secrets Manager. The security engineer edits the DB instance's security group to allow connections from this function. When the function is invoked, the function cannot communicate with Secrets Manager to rotate the secret properly. What should the security engineer do so that the function can rotate the secret?

  • AAdd an egress-only internet gateway to the VPC. Allow only the Lambda function's subnet to route traffic through the egress-only internet gateway.
  • BAdd a NAT gateway to the VPC. Configure only the Lambda function's subnet with a default route through the NAT gateway.
  • CConfigure a VPC peering connection to the default VPC for Secrets Manager. Configure the Lambda function's subnet to use the peering connection for routes.
  • DConfigure a Secrets Manager interface VPC endpoint. Include the Lambda function's private subnet during the configuration process. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Configure a Secrets Manager interface VPC endpoint. Include the Lambda function's private subnet during the configuration process.

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead. A VPC endpoint provides private connectivity to AWS services without traversing the public internet. AWS Secrets Manager stores and automatically rotates secrets such as database credentials.

Topic 1 Β· Question 95 Β· Select all that apply

The security engineer is managing a traditional three-tier web application that is running on Amazon EC2 instances. The application has become the target of increasing numbers of malicious attacks from the internet. What steps should the security engineer take to check for known vulnerabilities and limit the attack surface? (Choose two.)

  • AUse AWS Certificate Manager to encrypt all traffic between the client and application servers.
  • BReview the application security groups to ensure that only the necessary ports are open. (correct answer)
  • CUse Elastic Load Balancing to offload Secure Sockets Layer encryption.
  • DUse Amazon Inspector to periodically scan the backend instances. (correct answer)
  • EUse AWS Key Management Service (AWS KMS) to encrypt all the traffic between the client and application servers.
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: Review the application security groups to ensure that only the necessary ports are open. Option D: Use Amazon Inspector to periodically scan the backend instances.

Explanation

Amazon Inspector automatically scans workloads for software vulnerabilities.

Topic 1 Β· Question 96

A company is using Amazon Elastic Container Service (Amazon ECS) to run its container-based application on AWS. The company needs to ensure that the container images contain no severe vulnerabilities. The company also must ensure that only specific IAM roles and specific AWS accounts can access the container images. Which solution will meet these requirements with the LEAST management overhead?

  • APull images from the public container registry. Publish the images to Amazon Elastic Container Registry (Amazon ECR) repositories with scan on push configured in a centralized AWS account. Use a CI/CD pipeline to deploy the images to different AWS accounts. Use identity-based policies to restrict access to which IAM principals can access the images.
  • BPull images from the public container registry. Publish the images to a private container registry that is hosted on Amazon EC2 instances in a centralized AWS account. Deploy host-based container scanning tools to EC2 instances that run Amazon ECS. Restrict access to the container images by using basic authentication over HTTPS.
  • CPull images from the public container registry. Publish the images to Amazon Elastic Container Registry (Amazon ECR) repositories with scan on push configured in a centralized AWS account. Use a CI/CD pipeline to deploy the images to different AWS accounts. Use repository policies and identity-based policies to restrict access to which IAM principals and accounts can access the images. (correct answer)
  • DPull images from the public container registry. Publish the images to AWS CodeArtifact repositories in a centralized AWS account. Use a CI/CD pipeline to deploy the images to different AWS accounts. Use repository policies and identity-based policies to restrict access to which IAM principals and accounts can access the images.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Pull images from the public container registry. Publish the images to Amazon Elastic Container Registry (Amazon ECR) repositories with scan on push configured in a centralized AWS account. Use a CI/CD pipeline to depl...

Explanation

AWS IAM controls authenticated and authorized access to AWS resources with fine-grained policies. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 97

A company's data scientists want to create artificial intelligence and machine learning (AI/ML) training models by using Amazon SageMaker. The training models will use large datasets in an Amazon S3 bucket. The datasets contain sensitive information. On average, the data scientists need 30 days to train models. The S3 bucket has been secured appropriately. The company's data retention policy states that all data that is older than 45 days must be removed from the S3 bucket. Which action should a security engineer take to enforce this data retention policy?

  • AConfigure an S3 Lifecycle rule on the S3 bucket to delete objects after 45 days. (correct answer)
  • BCreate an AWS Lambda function to check the last-modified date of the S3 objects and delete objects that are older than 45 days. Create an S3 event notification to invoke the Lambda function for each PutObject operation.
  • CCreate an AWS Lambda function to check the last-modified date of the S3 objects and delete objects that are older than 45 days. Create an Amazon EventBridge rule to invoke the Lambda function each month.
  • DConfigure S3 Intelligent-Tiering on the S3 bucket to automatically transition objects to another storage class.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Configure an S3 Lifecycle rule on the S3 bucket to delete objects after 45 days.

Explanation

S3 Lifecycle policies automatically transition or expire objects to control storage cost. Amazon S3 provides durable, scalable object storage that is fully managed. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 98

A security engineer is troubleshooting an AWS Lambda function that is named MyLambdaFunction. The function is encountering an error when the function attempts to read the objects in an Amazon S3 bucket that is named DOC-EXAMPLE-BUCKET. The S3 bucket has the following bucket policy: Which change should the security engineer make to the policy to ensure that the Lambda function can read the bucket objects?

Exhibit 1 for question 98
  • ARemove the Condition element. Change the Principal element to the following:
  • BChange the Action element to the following:
  • CChange the Resource element to "arn:aws:s3:::DOC-EXAMPLE- BUCKET/*''. (correct answer)
  • DChange the Resource element to "arn:aws:lambda:::function:MyLambdaFunction". Change the Principal element to the following:
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Change the Resource element to "arn:aws:s3:::DOC-EXAMPLE- BUCKET/*''.

Explanation

Amazon S3 provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 99

An IAM user receives an Access Denied message when the user attempts to access objects in an Amazon S3 bucket. The user and the S3 bucket are in the same AWS account. The S3 bucket is configured to use server-side encryption with AWS KMS keys (SSE-KMS) to encrypt all of its objects at rest by using a customer managed key from the same AWS account. The S3 bucket has no bucket policy defined. The IAM user has been granted permissions through an IAM policy that allows the kms:Decrypt permission to the customer managed key. The IAM policy also allows the s3:List* and s3:Get* permissions for the S3 bucket and its objects. Which of the following is a possible reason that the IAM user cannot access the objects in the S3 bucket?

  • AThe IAM policy needs to allow the kms:DescribeKey permission.
  • BThe S3 bucket has been changed to use the AWS managed key to encrypt objects at rest.
  • CAn S3 bucket policy needs to be added to allow the IAM user to access the objects.
  • DThe KMS key policy has been edited to remove the ability for the AWS account to have full access to the key. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: The KMS key policy has been edited to remove the ability for the AWS account to have full access to the key.

Explanation

AWS KMS manages encryption keys and integrates with most AWS services for encryption at rest.

Topic 1 Β· Question 100

A company has a guideline that mandates the encryption of all Amazon S3 bucket data in transit. A security engineer must implement an S3 bucket policy that denies any S3 operations if data is not encrypted.

Which S3 bucket policy will meet this requirement?

  • AOption A for question 100
  • BOption B for question 100 (correct answer)
  • COption C for question 100
  • DOption D for question 100
Reveal answer & explanation
Correct answer: B

The correct answer is B. Compare the policy/code shown in each option image.

Showing questions 81–100 of 307 Β· Page 5 of 16