Question 1
Multiple choice
A company has a legacy application that runs on a single Amazon EC2 instance. A security audit shows that the application has been using an IAM access key within its code to access an Amazon S3 bucket that is named DOC-EXAMPLE-BUCKET1 in the same AWS account. This access key pair has the s3:GetObject permission to all objects in only this S3 bucket. The company takes the application offline because the application is not compliant with the company's security policies for accessing other AWS resources from Amazon EC2. A security engineer validates that AWS CloudTrail is turned on in all AWS Regions. CloudTrail is sending logs to an S3 bucket that is named DOC-EXAMPLE-BUCKET2. This S3 bucket is in the same AWS account as DOC-EXAMPLE-BUCKET1. However, CloudTrail has not been configured to send logs to Amazon CloudWatch Logs. The company wants to know if any objects in DOC-EXAMPLE-BUCKET1 were accessed with the IAM access key in the past 60 days. If any objects were accessed, the company wants to know if any of the objects that are text files (.txt extension) contained personally identifiable information (PII). Which combination of steps should the security engineer take to gather this information? (Choose two.)
-
A
Configure Amazon Macie to identify any objects in DOC-EXAMPLE-BUCKET1 that contain PII and that were available to the access key.
-
B
Use Amazon CloudWatch Logs Insights to identify any objects in DOC-EXAMPLE-BUCKET1 that contain PII and that were available to the access key.
-
C
Use Amazon OpenSearch Service (Amazon Elasticsearch Service) to query the CloudTrail logs in DOC-EXAMPLE-BUCKET2 for API calls that used the access key to access an object that contained PII.
-
D
Use Amazon Athena to query the CloudTrail logs in DOC-EXAMPLE-BUCKET2 for any API calls that used the access key to access an object that contained PII.
-
E
Use AWS Identity and Access Management Access Analyzer to identify any API calls that used the access key to access objects that contained PII in DOC-EXAMPLE-BUCKET1.
Reveal answer details
Close answer details
A Security Engineer has created an Amazon CloudWatch event that invokes an AWS Lambda function daily. The Lambda function runs an Amazon Athena query that checks AWS CloudTrail logs in Amazon S3 to detect whether any IAM user accounts or credentials have been created in the past 30 days. The results of the Athena query are created in the same S3 bucket. The Engineer runs a test execution of the Lambda function via the AWS Console, and the function runs successfully. After several minutes, the Engineer finds that his Athena query has failed with the error message: "Insufficient Permissions". The IAM permissions of the Security Engineer and the Lambda function are shown below: Security Engineer  Lambda function execution role  What is causing the error?
-
A
The Lambda function does not have permissions to start the Athena query execution.
-
B
The Security Engineer does not have permissions to start the Athena query execution.
-
C
The Athena service does not support invocation through Lambda.
-
D
The Lambda function does not have permissions to access the CloudTrail S3 bucket.
Reveal answer details
Close answer details
You want to track access requests for a particular S3 bucket. How can you achieve this in the easiest possible way? Please select:
-
A
Enable server access logging for the bucket
-
B
Enable Cloudwatch metrics for the bucket
-
C
Enable Cloudwatch logs for the bucket
-
D
Enable AWS Config for the S3 bucket
Reveal answer details
Close answer details
Correct answerA
ExplanationThe AWS Documentation mentions the foil To track requests for access to your bucket you can enable access logging. Each access log record provides details about a single access request, such as the requester, bucket name, request time, request action, response status, and error code, if any. Options B and C are incorrect Cloudwatch is used for metrics and logging and cannot be used to track access requests. Option D is incorrect since this can be used for Configuration management but for not for tracking S3 bucket requests. For more information on S3 server logs, please refer to below UF https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerLoes.htmlThecorrectansweris:Enableserveraccessloggingforthebucket
Question 4
Multiple choice
Your company has been using AWS for the past 2 years. They have separate S3 buckets for logging the various AWS services that have been used. They have hired an external vendor for analyzing their log files. They have their own AWS account. What is the best way to ensure that the partner account can access the log files in the company account for analysis. Choose 2 answers from the options given below Please select:
-
A
Create an IAM user in the company account
-
B
Create an IAM Role in the company account
-
C
Ensure the IAM user has access for read-only to the S3 buckets
-
D
Ensure the IAM Role has access for read-only to the S3 buckets
Reveal answer details
Close answer details
Correct answersB, D
ExplanationThe AWS Documentation mentions the following To share log files between multiple AWS accounts, you must perform the following general steps. These steps are explained in detail later in this section. Create an IAM role for each account that you want to share log files with. For each of these IAM roles, create an access policy that grants read-only access to the account you want to share the log files with. Have an IAM user in each account programmatically assume the appropriate role and retrieve the log files. Options A and C are invalid because creating an IAM user and then sharing the IAM user credentials with the vendor is a direct 'NO' practise from a security perspective. For more information on sharing cloudtrail logs files, please visit the following URL https://docs.aws.amazon.com/awscloudtrail/latest/userguide/ cloudtrail-sharine-loes.htmll The correct answers are: Create an IAM Role in the company account Ensure the IAM Role has access for read-only to the S3 buckets
A company's Developers plan to migrate their on-premises applications to Amazon EC2 instances running Amazon Linux AMIs. The applications are accessed by a group of partner companies. The Security Engineer needs to implement the following host-based security measures for these instances: 1. Block traffic from documented known bad IP addresses 2. Detect known software vulnerabilities and CIS Benchmarks compliance. Which solution addresses these requirements?
-
A
Launch the EC2 instances with an IAM role attached. Include a user data script that uses the AWS CLI to retrieve the list of bad IP addresses from AWS Secrets Manager and uploads it as a threat list in Amazon GuardDuty Use Amazon Inspector to scan the instances for known software vulnerabilities and CIS Benchmarks compliance
-
B
Launch the EC2 instances with an IAM role attached Include a user data script that uses the AWS CLl to create NACLs blocking ingress traffic from the known bad IP addresses in the EC2 instance's subnets Use AWS Systems Manager to scan the instances for known software vulnerabilities, and AWS Trusted Advisor to check instances for CIS Benchmarks compliance
-
C
Launch the EC2 instances with an IAM role attached Include a user data script that uses the AWS CLl to create and attach security groups that only allow an allow listed source IP address range inbound. Use Amazon Inspector to scan the instances for known software vulnerabilities, and AWS Trusted Advisor to check instances for CIS Benchmarks compliance
-
D
Launch the EC2 instances with an IAM role attached Include a user data script that creates a cron job to periodically retrieve the list of bad IP addresses from Amazon S3, and configures iptabies on the instances blocking the list of bad IP addresses Use Amazon inspector to scan the instances for known software vulnerabilities and CIS Benchmarks compliance.
Reveal answer details
Close answer details
A company needs to use HTTPS when connecting to its web applications to meet compliance requirements. These web applications run in Amazon VPC on Amazon EC2 instances behind an Application Load Balancer (ALB). A security engineer wants to ensure that the load balancer win only accept connections over port 443. even if the ALB is mistakenly configured with an HTTP listener Which configuration steps should the security engineer take to accomplish this task?
-
A
Create a security group with a rule that denies Inbound connections from 0.0.0 0/0 on port 00. Attach this security group to the ALB to overwrite more permissive rules from the ALB's default security group.
-
B
Create a network ACL that denies inbound connections from 0 0.0.0/0 on port 80 Associate the network ACL with the VPC s internet gateway
-
C
Create a network ACL that allows outbound connections to the VPC IP range on port 443 only. Associate the network ACL with the VPC's internet gateway.
-
D
Create a security group with a single inbound rule that allows connections from 0.0.0 0/0 on port 443. Ensure this security group is the only one associated with the ALB
Reveal answer details
Close answer details
Question 7
Multiple choice
A company has multiple production AWS accounts. Each account has AWS CloudTrail configured to log to a single Amazon S3 bucket in a central account. Two of the production accounts have trails that are not logging anything to the S3 bucket. Which steps should be taken to troubleshoot the issue? (Choose three.)
-
A
Verify that the log file prefix is set to the name of the S3 bucket where the logs should go.
-
B
Verify that the S3 bucket policy allows access for CloudTrail from the production AWS account IDs.
-
C
Create a new CloudTrail configuration in the account, and configure it to log to the account's S3 bucket.
-
D
Confirm in the CloudTrail Console that each trail is active and healthy.
-
E
Open the global CloudTrail configuration in the master account, and verify that the storage location is set to the correct S3 bucket.
-
F
Confirm in the CloudTrail Console that the S3 bucket name is set correctly.
Reveal answer details
Close answer details
A company's web application is hosted on Amazon EC2 instances running behind an Application Load Balancer (ALB) in an Auto Scaling group. An AWS WAF web ACL is associated with the ALB. AWS CloudTrail is enabled, and stores logs in Amazon S3 and Amazon CloudWatch Logs. The Operations team has observed some EC2 instances reboot at random. After rebooting, all access logs on the instances have been deleted. During an investigation, the Operations team found that each reboot happened just after a PHP error occurred on the new-user-creation.php file. The Operations team needs to view log information to determine if the company is being attacked. Which set of actions will identify the suspect attacker's IP address for future occurrences?
-
A
Configure VPC Flow Logs on the subnet where the ALB is located, and stream the data CloudWatch. Search for the new-user-creation.php occurrences in CloudWatch.
-
B
Configure the CloudWatch agent on the ALB Configure the agent to send application logs to CloudWatch Update the instance role to allow CloudWatch Logs access. Export the logs to CloudWatch Search for the new-user-creation.php occurrences in CloudWatch.
-
C
Configure the ALB to export access logs to an Amazon Elasticsearch Service cluster, and use the service to search for the new-user-creation.php occurrences.
-
D
Configure the web ACL to send logs to Amazon Kinesis Data Firehose, which delivers the logs to an S3 bucket Use Amazon Athena to query the logs and find the new-user-creation php occurrences.
Reveal answer details
Close answer details
Question 9
Multiple choice
A company's AWS CloudTrail logs are all centrally stored in an Amazon S3 bucket. The security team controls the company's AWS account. The security team must prevent unauthorized access and tampering of the CloudTrail logs. Which combination of steps should the security team take? (Choose three.)
-
A
Configure server-side encryption with AWS KMS managed encryption keys (SSE-KMS)
-
B
Compress log file with secure gzip.
-
C
Create an Amazon EventBridge (Amazon CloudWatch Events) rule to notify the security team of any modifications on CloudTrail log files.
-
D
Implement least privilege access to the S3 bucket by configuring a bucket policy.
-
E
Configure CloudTrail log file integrity validation.
-
F
Configure Access Analyzer for S3.
Reveal answer details
Close answer details
Question 10
Single choice
A company is using Amazon Route 53 Resolver for its hybrid DNS infrastructure. The company has set up Route 53 Resolver forwarding rules for authoritative domains that are hosted on on-premises DNS servers. A new security mandate requires the company to implement a solution to log and query DNS traffic that goes to the on-premises DNS servers. The logs must show details of the source IP address of the instance from which the query originated. The logs also must show the DNS name that was requested in Route 53 Resolver. Which solution will meet these requirements?
-
A
Use VPC Traffic Mirroring. Configure all relevant elastic network interfaces as the traffic source, include amazon-dns in the mirror filter, and set Amazon CloudWatch Logs as the mirror target. Use CloudWatch Insights on the mirror session logs to run queries on the source IP address and DNS name.
-
B
Configure VPC flow logs on all relevant VPCs. Send the logs to an Amazon S3 bucket. Use Amazon Athena to run SQL queries on the source IP address and DNS name.
-
C
Configure Route 53 Resolver query logging on all relevant VPCs. Send the logs to Amazon CloudWatch Logs. Use CloudWatch Insights to run queries on the source IP address and DNS name.
-
D
Modify the Route 53 Resolver rules on the authoritative domains that forward to the on-premises DNS servers. Send the logs to an Amazon S3 bucket. Use Amazon Athena to run SQL queries on the source IP address and DNS name.
Reveal answer details
Close answer details
Question 11
Single choice
A company's director of information security wants a daily email report from AWS that contains recommendations for each company account to meet AWS Security best practices. Which solution would meet these requirements?
-
A
in every AWS account, configure AWS Lambda to query me AWS Support API tor AWS Trusted Advisor security checks Send the results from Lambda to an Amazon SNS topic to send reports.
-
B
Configure Amazon GuardDuty in a master account and invite all other accounts to be managed by the master account Use GuardDuty's integration with Amazon SNS to report on findings
-
C
Use Amazon Athena and Amazon QuickSight to build reports off of AWS CloudTrail Create a daily Amazon CloudWatch trigger to run the report dally and email It using Amazon SNS
-
D
Use AWS Artifact's prebuilt reports and subscriptions Subscribe the Director of Information Security to the reports by adding the Director as the security alternate contact tor each account
Reveal answer details
Close answer details
Question 12
Multiple choice
A Security Engineer is defining the logging solution for a newly developed product. Systems Administrators and Developers need to have appropriate access to event log files in AWS CloudTrail to support and troubleshoot the product. Which combination of controls should be used to protect against tampering with and unauthorized access to log files? (Choose two.)
-
A
Ensure that the log file integrity validation mechanism is enabled.
-
B
Ensure that all log files are written to at least two separate Amazon S3 buckets in the same account.
-
C
Ensure that Systems Administrators and Developers can edit log files, but prevent any other access.
-
D
Ensure that Systems Administrators and Developers with job-related need-to-know requirements only are capable of viewing--but not modifying--the log files.
-
E
Ensure that all log files are stored on Amazon EC2 instances that allow SSH access from the internal corporate network only.
Reveal answer details
Close answer details
Question 13
Single choice
A large government organization is moving to the cloud and has specific encryption requirements. The first workload to move requires that a customer's data be immediately destroyed when the customer makes that request. Management has asked the security team to provide a solution that will securely store the data, allow only authorized applications to perform encryption and decryption and allow for immediate destruction of the data Which solution will meet these requirements?
-
A
Use AWS Secrets Manager and an AWS SDK to create a unique secret for the customer-specific data
-
B
Use AWS Key Management Service (AWS KMS) and the AWS Encryption SDK to generate and store a data encryption key for each customer.
-
C
Use AWS Key Management Service (AWS KMS) with service-managed keys to generate and store customer-specific data encryption keys
-
D
Use AWS Key Management Service (AWS KMS) and create an AWS CloudHSM custom key store Use CloudHSM to generate and store a new CMK for each customer.
Reveal answer details
Close answer details
Question 14
Single choice
Your development team has started using AWS resources for development purposes. The AWS account has just been created. Your IT Security team is worried about possible leakage of AWS keys. What is the first level of measure that should be taken to protect the AWS account. Please select:
-
A
Delete the AWS keys for the root account
-
B
-
C
-
D
Restrict access using IAM policies
Reveal answer details
Close answer details
Correct answerA
ExplanationThe first level or measure that should be taken is to delete the keys for the IAM root user When you log into your account and go to your Security Access dashboard, this is the first step that can be seen  Option B and C are wrong because creation of IAM groups and roles will not change the impact of leakage of AWS root access keys Option D is wrong because the first key aspect is to protect the access keys for the root account For more information on best practises for Security Access keys, please visit the below URL: https://docs.aws.amazon.com/eeneral/latest/gr/aws-access-keys-best-practices.html The correct answer is: Delete the AWS keys for the root account
Question 15
Single choice
A company needs to encrypt all of its data stored in Amazon S3. The company wants to use AWS Key Management Service (AWS KMS) to create and manage its encryption keys. The company's security policies require the ability to Import the company's own key material for the keys, set an expiration date on the keys, and delete keys immediately, if needed. How should a security engineer set up AWS KMS to meet these requirements?
-
A
Configure AWS KMS and use a custom key store. Create a customer managed CMK with no key material Import the company's keys and key material into the CMK
-
B
Configure AWS KMS and use the default Key store Create an AWS managed CMK with no key material Import the company's key material into the CMK
-
C
Configure AWS KMS and use the default key store Create a customer managed CMK with no key material import the company's key material into the CMK
-
D
Configure AWS KMS and use a custom key store. Create an AWS managed CMK with no key material. Import the company's key material into the CMK.
Reveal answer details
Close answer details
Correct answerA
ExplanationReferences: https://docs.aws.amazon.com/kms/latest/developerguide/overview.html
Question 16
Single choice
A company requires that SSH commands used to access its AWS instance be traceable to the user who executed each command. How should a Security Engineer accomplish this?
-
A
Allow inbound access on port 22 at the security group attached to the instance. Use AWS Systems Manager Session Manager for shell access to Amazon EC2 instances with the user tag defined. Enable Amazon CloudWatch logging for Systems Manager sessions.
-
B
Use Amazon S3 to securely store one Privacy Enhanced Mail Certificate (PEM file) for each user. Allow Amazon EC2 to read from Amazon S3 and import every user that wants to use SSH to access EC2 instance. Allow inbound access on port 22 at the security group attached to the instance. Install the Amazon CloudWatch agent on the EC2 instance and configure it to ingest audit logs for the instance.
-
C
Deny inbound access on port 22 at the security group attached to the instance. Use AWS Systems Manager Session Manager for shell access to Amazon EC2 instances with the user tag defined. Enable Amazon CloudWatch logging for Systems Manager sessions.
-
D
Use Amazon S3 to securely store one Privacy Enhanced Mail Certificate (PEM file) for each team or group. Allow Amazon EC2 to read from Amazon S3 and import every user that wants to use SSH to access EC2 instance. Allow inbound access on port 22 at the security group attached to the instance. Install the Amazon CloudWatch agent on the EC2 instance and configure it to ingest audit logs for the instances.
Reveal answer details
Close answer details
Question 17
Single choice
A company's security engineer is configuring Amazon S3 permissions to ban all current and future public buckets However, the company hosts several websites directly off S3 buckets with public access enabled The engineer needs to bock me pubic S3 buckets without causing any outages on me easting websites The engineer has set up an Amazon CloudFrom distribution (or each website Which set or steps should the security engineer implement next?
-
A
Configure an S3 bucket as the origin an origin access identity (OAI) for the CloudFront distribution Switch the DNS records from websites to point to the CloudFront distribution Enable Nock public access settings at the account level
-
B
Configure an S3 bucket as the origin with an origin access identity (OAI) for the CloudFront distribution Switch the ONS records tor the websites to point to the CloudFront disinfection. Then, tor each S3 bucket enable block public access settings
-
C
Configure an S3 bucket as the origin with an origin access identity (OAI) for the CloudFront distribution Enable block public access settings at the account level
-
D
Configure an S3 bucket as the origin for me CloudFront distribution Configure the S3 bucket policy to accept connections from the CloudFront points of presence only Switch the DNS records for the websites to point to the CloudFront distribution Enable block public access settings at me account level
Reveal answer details
Close answer details
Question 18
Single choice
Your company has a requirement to work with a DynamoDB table. There is a security mandate that all data should be encrypted at rest. What is the easiest way to accomplish this for DynamoDB. Please select:
-
A
Use the AWS SDK to encrypt the data before sending it to the DynamoDB table
-
B
Encrypt the DynamoDB table using KMS during its creation
-
C
Encrypt the table using AWS KMS after it is created
-
D
Use S3 buckets to encrypt the data before sending it to DynamoDB
Reveal answer details
Close answer details
Correct answerB
ExplanationThe most easiest option is to enable encryption when the DynamoDB table is created. The AWS Documentation mentions the following Amazon DynamoDB offers fully managed encryption at rest. DynamoDB encryption at rest provides enhanced security by encrypting your data at rest using an AWS Key Management Service (AWS KMS) managed encryption key for DynamoDB. This functionality eliminates the operational burden and complexity involved in protecting sensitive data. Option A is partially correct, you can use the AWS SDK to encrypt the data, but the easier option would be to encrypt the table before hand. Option C is invalid because you cannot encrypt the table after it is created Option D is invalid because encryption for S3 buckets is for the objects in S3 only. For more information on securing data at rest for DynamoDB please refer to below URL: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/EncryptionAtRest.htmll The correct answer is: Encrypt the DynamoDB table using KMS during its creation
Question 19
Single choice
A company uses an external identity provider to allow federation into different AWS accounts. A security engineer for the company needs to identify the federated user that terminated a production Amazon EC2 instance a week ago. What is the FASTEST way for the security engineer to identify the federated user?
-
A
Review the AWS CloudTrail event history logs in an Amazon S3 bucket and look for the TerminateInstances event to identify the federated user from the role session name.
-
B
Filter the AWS CloudTrail event history for the TerminateInstances event and identify the assumed IAM role. Review the AssumeRoleWithSAML event call in CloudTrail to identify the corresponding username.
-
C
Search the AWS CloudTrail logs for the TerminateInstances event and note the event time. Review the IAM Access Advisor tab for all federated roles. The last accessed time should match the time when the instance was terminated.
-
D
Use Amazon Athena to run a SQL query on the AWS CloudTrail logs stored in an Amazon S3 bucket and filter on the TerminateInstances event. Identify the corresponding role and run another query to filter the AssumeRoleWithWebIdentity event for the user name.
Reveal answer details
Close answer details
Correct answerB
Explanationhttps://aws.amazon.com/blogs/security/how-to-easily-identify-your-federated-users-by-using-aws-cloudtrail/ AssumeRoleWithSAML : Returns a set of temporary security credentials for users who have been authenticated via a SAML authentication response. This operation provides a mechanism for tying an enterprise identity store or directory to role-based AWS access without user-specific credentials or configuration.
Question 20
Single choice
A Security Engineer is implementing a solution to allow users to seamlessly encrypt Amazon S3 objects without having to touch the keys directly. The solution must be highly scalable without requiring continual management. Additionally, the organization must be able to immediately delete the encryption keys. Which solution meets these requirements?
-
A
Use AWS KMS with AWS managed keys and the ScheduleKeyDeletion API with a PendingWindowInDays set to 0 to remove the keys if necessary.
-
B
Use KMS with AWS imported key material and then use the DeletelmportedKeyMaterial API to remove the key material if necessary.
-
C
Use AWS CloudHSM to store the keys and then use the CloudHSM API or the PKCS11 library to delete the keys if necessary.
-
D
Use the Systems Manager Parameter Store to store the keys and then use the service API operations to delete the key if necessary.
Reveal answer details
Close answer details
Correct answerC
Explanationhttps://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-delete-key-material.html
Question 21
Multiple choice
A development team is using an AWS Key Management Service (AWS KMS) CMK to try to encrypt and decrypt a secure string parameter from AWS Systems Manager Parameter Store. However, the development team receives an error message on each attempt. Which issues that are related to the CMK could be reasons for the error? (Choose two.)
-
A
The CMK is used in the attempt does not exist.
-
B
The CMK is used in the attempt needs to be rotated.
-
C
The CMK is used in the attempt is using the CMK's key ID instead of the CMK ARN.
-
D
The CMK is used in the attempt is not enabled.
-
E
The CMK is used in the attempt is using an alias.
Reveal answer details
Close answer details
Correct answersA, D
ExplanationMost of the Parameter Store failures related to KMS keys are caused by the following problems: The KMS key is not found.This typically happens when you use an incorrect identifier for the KMS key. The KMS key is not enabled. When this occurs, Parameter Store returns an InvalidKeyId exception with a detailed error message from AWS KMS.
Question 22
Multiple choice
You are planning on hosting a web application on AWS. You create an EC2 Instance in a public subnet. This instance needs to connect to an EC2 Instance that will host an Oracle database. Which of the following steps should be followed to ensure a secure setup is in place? Select 2 answers. Please select:
-
A
Place the EC2 Instance with the Oracle database in the same public subnet as the Web server for faster communication
-
B
Place the EC2 Instance with the Oracle database in a separate private subnet
-
C
Create a database security group and ensure the web security group to allowed incoming access
-
D
Ensure the database security group allows incoming traffic from 0.0.0.0/0
Reveal answer details
Close answer details
Correct answersB, C
ExplanationThe best secure option is to place the database in a private subnet. The below diagram from the AWS Documentation shows this setup. Also ensure that access is not allowed from all sources but just from the web servers.  Option A is invalid because databases should not be placed in the public subnet Option D is invalid because the database security group should not allow traffic from the internet For more information on this type of setup, please refer to the below URL: https://docs.aws.amazon.com/AmazonVPC/latest/UserGuideA/PC Scenario2. The correct answers are: Place the EC2 Instance with the Oracle database in a separate private subnet Create a database security group and ensure the web security group to allowed incoming access
Question 23
Multiple choice
A company plans to move most of its IT infrastructure to AWS. They want to leverage their existing on-premises Active Directory as an identity provider for AWS. Which combination of steps should a Security Engineer take to federate the company's on-premises Active Directory with AWS? (Choose two.)
-
A
Create IAM roles with permissions corresponding to each Active Directory group.
-
B
Create IAM groups with permissions corresponding to each Active Directory group.
-
C
Configure Amazon Cloud Directory to support a SAML provider.
-
D
Configure Active Directory to add relying party trust between Active Directory and AWS.
-
E
Configure Amazon Cognito to add relying party trust between Active Directory and AWS.
Reveal answer details
Close answer details
Correct answersA, D
Explanationhttps://aws.amazon.com/blogs/security/how-to-establish-federated-access-to-your-aws-resources-by-using-active-directory-user-attributes/
Question 24
Single choice
A global company must mitigate and respond to DDoS attacks at Layers 3, 4 and 7 All of the company's AWS applications are serverless with static content hosted on Amazon S3 using Amazon CloudFront and Amazon Route 53 Which solution will meet these requirements?
-
A
Use AWS WAF with an upgrade to the AWS Business support plan
-
B
Use AWS Certificate Manager with an Application Load Balancer configured with an origin access identity
-
C
-
D
Use AWS WAF to protect AWS Lambda functions encrypted with AWS KMS and a NACL restricting all Ingress traffic
Reveal answer details
Close answer details
Question 25
Multiple choice
An employee keeps terminating EC2 instances on the production environment. You've determined the best way to ensure this doesn't happen is to add an extra layer of defense against terminating the instances. What is the best method to ensure the employee does not terminate the production instances? Choose the 2 correct answers from the options below Please select:
-
A
Tag the instance with a production-identifying tag and add resource-level permissions to the employee user with an explicit deny on the terminate API call to instances with the production tag. <
-
B
Tag the instance with a production-identifying tag and modify the employees group to allow only start stop, and reboot API calls and not the terminate instance call.
-
C
Modify the IAM policy on the user to require MFA before deleting EC2 instances and disable MFA access to the employee
-
D
Modify the IAM policy on the user to require MFA before deleting EC2 instances
Reveal answer details
Close answer details
Correct answersA, B
ExplanationTags enable you to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. This is useful when you have many resources of the same type -- you can quickly identify a specific resource based on the tags you've assigned to it. Each tag consists of a key and an optional value, both of which you define Options C&D are incorrect because it will not ensure that the employee cannot terminate the instance. For more information on tagging answer resources please refer to the below URL: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Usins_Tags.htmll The correct answers are: Tag the instance with a production-identifying tag and add resource-level permissions to the employe user with an explicit deny on the terminate API call to instances with the production tag.. Tag the instance with a production-identifying tag and modify the employees group to allow only start stop, and reboot API calls and not the terminate instance
Question 26
Single choice
A company hosts data in S3. There is now a mandate that going forward all data in the S3 bucket needs to encrypt at rest. How can this be achieved? Please select:
-
A
Use AWS Access keys to encrypt the data
-
B
Use SSL certificates to encrypt the data
-
C
Enable server side encryption on the S3 bucket
-
D
Enable MFA on the S3 bucket
Reveal answer details
Close answer details
Correct answerC
ExplanationThe AWS Documentation mentions the following Server-side encryption is about data encryption at rest-- that is, Amazon S3 encrypts your data at the object level as it writes it to disks in its data centers and decrypts it for you when you access it. As long as you authenticate your request and you have access permissions, there is no difference in the way you access encrypted or unencrypted objects. Options A and B are invalid because neither Access Keys nor SSL certificates can be used to encrypt data. Option D is invalid because MFA is just used as an extra level of security for S3 buckets For more information on S3 server side encryption, please refer to the below Link: https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html
Question 27
Multiple choice
An employee accidentally exposed an AWS access key and secret access key during a public presentation. The company Security Engineer immediately disabled the key. How can the Engineer assess the impact of the key exposure and ensure that the credentials were not misused? (Choose two.)
-
A
Analyze AWS CloudTrail for activity.
-
B
Analyze Amazon CloudWatch Logs for activity.
-
C
Download and analyze the IAM Use report from AWS Trusted Advisor.
-
D
Analyze the resource inventory in AWS Config for IAM user activity.
-
E
Download and analyze a credential report from IAM.
Reveal answer details
Close answer details
Correct answersA, E
Explanationhttps://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_getting-report.html
Question 28
Single choice
A company's security team has defined a set of AWS Config rules that must be enforced globally in all AWS accounts the company owns. What should be done to provide a consolidated compliance overview for the security team?
-
A
Use AWS Organizations to limit AWS Config rules to the appropriate Regions, and then consolidate the Amazon CloudWatch dashboard into one AWS account.
-
B
Use AWS Config aggregation to consolidate the views into one AWS account, and provide role access to the security team.
-
C
Consolidate AWS Config rule results with an AWS Lambda function and push data to Amazon SQS. Use Amazon SNS to consolidate and alert when some metrics are triggered.
-
D
Use Amazon GuardDuty to load data results from the AWS Config rules compliance status, aggregate GuardDuty findings of all AWS accounts into one AWS account, and provide role access to the security team.
Reveal answer details
Close answer details
Question 29
Single choice
A company has multiple AWS accounts in an organization in AWS Organizations. The company is operating its business only in the United States (US) and stores sensitive information in Amazon S3 buckets. Because of the sensitivity of the data, the company wants to block access to S3 buckets that are located in AWS Regions outside the US. Which SCP should a security engineer use to meet this requirement?  
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerB
ExplanationEffect, Action, and StringNotLike
Question 30
Multiple choice
You have a set of 100 EC2 Instances in an AWS account. You need to ensure that all of these instances are patched and kept to date. All of the instances are in a private subnet. How can you achieve this. Choose 2 answers from the options given below Please select:
-
A
Ensure a NAT gateway is present to download the updates
-
B
Use the Systems Manager to patch the instances
-
C
Ensure an internet gateway is present to download the updates
-
D
Use the AWS inspector to patch the updates
Reveal answer details
Close answer details
Correct answersA, B
ExplanationOption C is invalid because the instances need to remain in the private: Option D is invalid because AWS inspector can only detect the patches One of the AWS Blogs mentions how patching of Linux servers can be accomplished. Below is the diagram representation of the architecture setup  For more information on patching Linux workloads in AWS, please refer to the Lin. https://aws.amazon.com/blogs/security/how-to-patch-linux-workloads-on-awsj The correct answers are: Ensure a NAT gateway is present to download the updates. Use the Systems Manager to patch the instances
Question 31
Multiple choice
A company Is trying to replace its on-premises bastion hosts used to access on-premises Linux servers with AWS Systems Manager Session Manager. A security engineer has installed the Systems Manager Agent on all servers. The security engineer verifies that the agent is running on all the servers, but Session Manager cannot connect to them. The security engineer needs to perform verification steps before Session Manager will work on the servers. Which combination of steps should the security engineer perform? (Select THREE.)
-
A
Open inbound port 22 to 0 0.0.0/0 on all Linux servers.
-
B
Enable the advanced-instances tier in Systems Manager.
-
C
Create a managed-instance activation for the on-premises servers.
-
D
Reconfigure the Systems Manager Agent with the activation code and ID.
-
E
Assign an IAM role to all of the on-premises servers.
-
F
Initiate an inventory collection with Systems Manager on the on-premises servers
Reveal answer details
Close answer details
Question 32
Single choice
A company has resources hosted in their AWS Account. There is a requirement to monitor all API activity for all regions. The audit needs to be applied for future regions as well. Which of the following can be used to fulfil this requirement. Please select:
-
A
Ensure Cloudtrail for each region. Then enable for each future region.
-
B
Ensure one Cloudtrail trail is enabled for all regions.
-
C
Create a Cloudtrail for each region. Use Cloudformation to enable the trail for all future regions.
-
D
Create a Cloudtrail for each region. Use AWS Config to enable the trail for all future regions.
Reveal answer details
Close answer details
Correct answerB
ExplanationThe AWS Documentation mentions the following You can now turn on a trail across all regions for your AWS account. CloudTrail will deliver log files from all regions to the Amazon S3 bucket and an optional CloudWatch Logs log group you specified. Additionally, when AWS launches a new region, CloudTrail will create the same trail in the new region. As a result you will receive log files containing API activity for the new region without taking any action. Option A and C is invalid because this would be a maintenance overhead to enable cloudtrail for every region Option D is invalid because this AWS Config cannot be used to enable trails For more information on this feature, please visit the following URL: https://aws.ama2on.com/about-aws/whats-new/20l5/l2/turn-on-cloudtrail-across-all-reeions-and-support-for-multiple-trails The correct answer is: Ensure one Cloudtrail trail is enabled for all regions.
Question 33
Single choice
After a recent security audit involving Amazon S3, a company has asked for assistance reviewing its S3 buckets to determine whether the data is properly secured. The first S3 bucket on the list has the following bucket policy:  In this bucket policy sufficient to ensure that the data is not publicly accessible?
-
A
Yes, the bucket policy makes the whole bucket publicly accessible despite now the S3 bucket ACL or object ACLs are configured.
-
B
Yes, none of the data in the bucket is publicity accessible, regardless of how the S3 bucket ACL and object ACLs are configured.
-
C
No, the IAM user policy would need to be examined first to determine whether any data is publicly accessible.
-
D
No, the S3 bucket ACL and object ACLs need to be examined first to determine whether any data is publicly accessible.
Reveal answer details
Close answer details
Question 34
Single choice
Your company is planning on hosting an internal network in AWS. They want machines in the VPC to authenticate using private certificates. They want to minimize the work and maintenance in working with certificates. What is the ideal way to fulfil this requirement. Please select:
-
A
Consider using Windows Server 2016 Certificate Manager
-
B
Consider using AWS Certificate Manager
-
C
Consider using AWS Access keys to generate the certificates
-
D
Consider using AWS Trusted Advisor for managing the certificates
Reveal answer details
Close answer details
Correct answerB
ExplanationThe AWS Documentation mentions the following ACM is tightly linked with AWS Certificate Manager Private Certificate Authority. You can use ACM PCA to create a private certificate authority (CA) and then use ACM to issue private certificates. These are SSL/TLS X.509 certificates that identify users, computers, applications, services, servers, and other devices internally. Private certificates cannot be publicly trusted Option A is partially invalid. Windows Server 2016 Certificate Manager can be used but since there is a requirement to "minimize the work and maintenance", AWS Certificate Manager should be used Option C and D are invalid because these cannot be used for managing certificates. For more information on ACM, please visit the below URL: https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html The correct answer is: Consider using AWS Certificate Manager
Question 35
Multiple choice
AWS CloudTrail is being used to monitor API calls in an organization. An audit revealed that CloudTrail is failing to deliver events to Amazon S3 as expected. What initial actions should be taken to allow delivery of CloudTrail events to S3? (Select two.)
-
A
Verify that the S3 bucket policy allow CloudTrail to write objects.
-
B
Verify that the IAM role used by CloudTrail has access to write to Amazon CloudWatch Logs.
-
C
Remove any lifecycle policies on the S3 bucket that are archiving objects to Amazon Glacier.
-
D
Verify that the S3 bucket defined in CloudTrail exists.
-
E
Verify that the log file prefix defined in CloudTrail exists in the S3 bucket.
Reveal answer details
Close answer details
Correct answersB, D
Explanationhttps://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-s3-bucket-policy-for-cloudtrail.html
Question 36
Single choice
A company recently had a security audit in which the auditors identified multiple potential threats. These potential threats can cause usage pattern changes such as DNS access peak, abnormal instance traffic, abnormal network interface traffic, and unusual Amazon S3 API calls. The threats can come from different sources and can occur at any time. The company needs to implement a solution to continuously monitor its system and identify all these incoming threats in near-real time. Which solution will meet these requirements?
-
A
Enable AWS CloudTrail logs, VPC flow logs, and DNS logs. Use Amazon CloudWatch Logs to manage these logs from a centralized account.
-
B
Enable AWS CloudTrail logs, VPC flow logs, and DNS logs. Use Amazon Macie to monitor these logs from a centralized account.
-
C
Enable Amazon GuardDuty from a centralized account. Use GuardDuty to manage AWS CloudTrail logs, VPC flow logs, and DNS logs.
-
D
Enable Amazon Inspector from a centralized account. Use Amazon Inspector to manage AWS CloudTrail logs, VPC flow logs, and DNS logs.
Reveal answer details
Close answer details
Question 37
Single choice
A Security Engineer creates an Amazon S3 bucket policy that denies access to all users. A few days later, the Security Engineer adds an additional statement to the bucket policy to allow read-only access to one other employee. Even after updating the policy, the employee still receives an access denied message. What is the likely cause of this access denial?
-
A
The ACL in the bucket needs to be updated.
-
B
The IAM policy does not allow the user to access the bucket
-
C
It takes a few minutes for a bucket policy to take effect
-
D
The allow permission is being overridden by the deny.
Reveal answer details
Close answer details
Correct answerB
ExplanationReferences: https://aws.amazon.com/premiumsupport/knowledge-center/s3-access-denied-bucket-policy/
Question 38
Single choice
A systems engineer deployed containers from several custom-built images that an application team provided through a QA workflow. The systems engineer used Amazon Elastic Container Service (Amazon ECS) with the Fargate launch type as the target platform. The system engineer now needs to collect logs from all containers into an existing Amazon CloudWatch log group Which solution will meet this requirement?
-
A
Turn on the awslogs log driver by specifying parameters for awslogs-group and awslogs-region m the LogConfiguration property
-
B
Download and configure the CloudWatch agent on the container instances
-
C
Set up Fluent Bit and FluentO as a DaemonSet to send logs to Amazon CloudWatch Logs
-
D
Configure an IAM policy that includes the togs CreateLogGroup action Assign the policy to the container instances
Reveal answer details
Close answer details
Correct answerA
ExplanationThe AWS documentation states that you can use the awslogs log driver to send log information to CloudWatch Logs. To use this method, you specify the parameters for awslogs-group and awslogs-region in the LogConfiguration property of the container definition. This method is the easiest way to send logs to CloudWatch Logs. References: Amazon Elastic Container Service Developer Guide
Question 39
Multiple choice
A company hosts critical data in an S3 bucket. Even though they have assigned the appropriate permissions to the bucket, they are still worried about data deletion. What measures can be taken to restrict the risk of data deletion on the bucket. Choose 2 answers from the options given below Please select:
-
A
Enable versioning on the S3 bucket
-
B
Enable data at rest for the objects in the bucket
-
C
Enable MFA Delete in the bucket policy
-
D
Enable data in transit for the objects in the bucket
Reveal answer details
Close answer details
Correct answersA, C
ExplanationOne of the AWS Security blogs mentions the followinj Versioning keeps multiple versions of an object in the same bucket. When you enable it on a bucket Amazon S3 automatically adds a unique version ID to every object stored in the bucket. At that point, a simple DELETE action does not permanently delete an object version; it merely associates a delete marker with the object. If you want to permanently delete an object version, you must specify its version ID in your DELETE request. You can add another layer of protection by enabling MFA Delete on a versioned bucket. Once you do so, you must provide your AWS accounts access keys and a valid code from the account's MFA device in order to permanently delete an object version or suspend or reactivate versioning on the bucket. Option B is invalid because enabling encryption does not guarantee risk of data deletion. Option D is invalid because this option does not guarantee risk of data deletion. For more information on AWS S3 versioning and MFA please refer to the below URL: https://aws.amazon.com/blogs/security/securing-access-to-aws-using-mfa-part-3/ The correct answers are: Enable versioning on the S3 bucket Enable MFA Delete in the bucket policy
Question 40
Multiple choice
A company recently set up Amazon GuardDuty and is receiving a high number of findings from IP addresses within the company. A security engineer has verified that these IP addresses are trusted and allowed. Which combination of steps should the security engineer take to configure GuardDuty so that it does not produce findings for these IP addresses? (Choose two.)
-
A
Create a plaintext configuration file that contains the trusted IP addresses.
-
B
Create a JSON configuration file that contains the trusted IP addresses.
-
C
Upload the configuration file directly to GuardDuty.
-
D
Upload the configuration file to Amazon S3. Add a new trusted IP list to GuardDuty that points to the file.
-
E
Manually copy and paste the configuration file data into the trusted IP list in GuardDuty.
Reveal answer details
Close answer details
Question 41
Single choice
A company is hosting multiple applications within a single VPC in its AWS account. The applications are running behind an Application Load Balancer that is associated with an AWS WAF web ACL. The company's security team has identified that multiple port scans are originating from a specific range of IP addresses on the internet. A security engineer needs to deny access from the offending IP addresses. Which solution will meet these requirements?
-
A
Modify the AWS WAF web ACL with an IP set match rule statement to deny incoming requests from the IP address range.
-
B
Add a rule to all security groups to deny the incoming requests from the IP address range.
-
C
Modify the AWS WAF web ACL with a rate-based rule statement to deny incoming requests from the IP address range.
-
D
Configure the AWS WAF web ACL with regex match conditions. Specify a pattern set to deny the incoming requests based on the match condition.
Reveal answer details
Close answer details
Correct answerA
ExplanationThe IP set match statement inspects the IP address of a web request against a set of IP addresses and address ranges. Use this to allow or block web requests based on the IP addresses that the requests originate from https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-ipset-match.html
Question 42
Single choice
A company has hired a third-party security auditor, and the auditor needs read-only access to all AWS resources and logs of all VPC records and events that have occurred on AWS. How can the company meet the auditor's requirements without comprising security in the AWS environment? Choose the correct answer from the options below Please select:
-
A
Create a role that has the required permissions for the auditor.
-
B
Create an SNS notification that sends the CloudTrail log files to the auditor's email when CIoudTrail delivers the logs to S3, but do not allow the auditor access to the AWS environment.
-
C
The company should contact AWS as part of the shared responsibility model, and AWS will grant required access to th^ third-party auditor.
-
D
Enable CloudTrail logging and create an IAM user who has read-only permissions to the required AWS resources, including the bucket containing the CloudTrail logs.
Reveal answer details
Close answer details
Correct answerD
ExplanationAWS CloudTrail is a service that enables governance, compliance, operational auditing, and risk auditing of your AWS account. With CloudTrail, you can log, continuously monitor, and retain events related to API calls across your AWS infrastructure. CloudTrail provides a history of AWS API calls for your account including API calls made through the AWS Management Console, AWS SDKs, command line tools, and other AWS services. This history simplifies security analysis, resource change tracking, and troubleshooting. Option A and C are incorrect since Cloudtrail needs to be used as part of the solution Option B is incorrect since the auditor needs to have access to Cloudtrail For more information on cloudtrail, please visit the below URL: https://aws.amazon.com/cloudtraiL The correct answer is: Enable CloudTrail logging and create an IAM user who has read-only permissions to the required AWS resources, including the bucket containing the CloudTrail logs.
Question 43
Single choice
An application developer is using an AWS Lambda function that must use AWS KMS to perform encrypt and decrypt operations for API keys that are less than 2 KB. Which key policy would allow the application to do this while granting least privilege? 
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Question 44
Single choice
A company's security engineer wants to receive an email alert whenever Amazon GuardDuty, AWS Identity and Access Management Access Analyzer, or Amazon Made generate a high-severity security finding. The company uses AWS Control Tower to govern all of its accounts. The company also uses AWS Security Hub with all of the AWS service integrations turned on. Which solution will meet these requirements with the LEAST operational overhead?
-
A
Set up separate AWS Lambda functions for GuardDuty, IAM Access Analyzer, and Macie to call each service's public API to retrieve high-severity findings. Use Amazon Simple Notification Service (Amazon SNS) to send the email alerts. Create an Amazon EventBridge rule to invoke the functions on a schedule.
-
B
Create an Amazon EventBridge rule with a pattern that matches Security Hub findings events with high severity. Configure the rule to send the findings to a target Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the desired email addresses to the SNS topic.
-
C
Create an Amazon EventBridge rule with a pattern that matches AWS Control Tower events with high severity. Configure the rule to send the findings to a target Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the desired email addresses to the SNS topic.
-
D
Host an application on Amazon EC2 to call the GuardDuty, IAM Access Analyzer, and Macie APIs. Within the application, use the Amazon Simple Notification Service (Amazon SNS) API to retrieve high-severity findings and to send the findings to an SNS topic. Subscribe the desired email addresses to the SNS topic.
Reveal answer details
Close answer details
Correct answerB
ExplanationThe AWS documentation states that you can create an Amazon EventBridge rule with a pattern that matches Security Hub findings events with high severity. You can then configure the rule to send the findings to a target Amazon Simple Notification Service (Amazon SNS) topic. You can subscribe the desired email addresses to the SNS topic. This method is the least operational overhead way to meet the requirements. References: AWS Security Hub User Guide
Question 45
Single choice
You have enabled Cloudtrail logs for your company's AWS account. In addition, the IT Security department has mentioned that the logs need to be encrypted. How can this be achieved? Please select:
-
A
Enable SSL certificates for the Cloudtrail logs
-
B
There is no need to do anything since the logs will already be encrypted
-
C
Enable Server side encryption for the trail
-
D
Enable Server side encryption for the destination S3 bucket
Reveal answer details
Close answer details
Correct answerB
ExplanationThe AWS Documentation mentions the following. By default CloudTrail event log files are encrypted using Amazon S3 server-side encryption (SSE). You can also choose to encryption your log files with an AWS Key Management Service (AWS KMS) key. You can store your log files in your bucket for as long as you want. You can also define Amazon S3 lifecycle rules to archive or delete log files automatically. If you want notifications about lo file delivery and validation, you can set up Amazon SNS notifications. Option A.C and D are not valid since logs will already be encrypted For more information on how Cloudtrail works, please visit the following URL: https://docs.aws.amazon.com/awscloudtrail/latest/usereuide/how-cloudtrail-works.htmll The correct answer is: There is no need to do anything since the logs will already be encrypted
Question 46
Multiple choice
A company has several production AWS accounts and a central security AWS account. The security account is used for centralized monitoring and has IAM privileges to all resources in every corporate account. All of the company's Amazon S3 buckets are tagged with a value denoting the data classification of their contents. A Security Engineer is deploying a monitoring solution in the security account that will enforce bucket policy compliance. The system must monitor S3 buckets in all production accounts and confirm that any policy change is in accordance with the bucket's data classification. If any change is out of compliance; the Security team must be notified quickly. Which combination of actions would build the required solution? (Choose three.)
-
A
Configure Amazon CloudWatch Events in the production accounts to send all S3 events to the security account event bus.
-
B
Enable Amazon GuardDuty in the security account. and join the production accounts as members.
-
C
Configure an Amazon CloudWatch Events rule in the security account to detect S3 bucket creation or modification events.
-
D
Enable AWS Trusted Advisor and activate email notifications for an email address assigned to the security contact.
-
E
Invoke an AWS Lambda function in the security account to analyze S3 bucket settings in response to S3 events, and send non-compliance notifications to the Security team.
-
F
Configure event notifications on S3 buckets for PUT; POST, and DELETE events.
Reveal answer details
Close answer details
Question 47
Single choice
A Security Engineer must add additional protection to a legacy web application by adding the following HTTP security headers: -Content Security-Policy -X-Frame-Options -X-XSS-Protection The Engineer does not have access to the source code of the legacy web application. Which of the following approaches would meet this requirement?
-
A
Configure an Amazon Route 53 routing policy to send all web traffic that does not include the required headers to a black hole.
-
B
Implement an AWS Lambda@Edge origin response function that inserts the required headers.
-
C
Migrate the legacy application to an Amazon S3 static website and front it with an Amazon CloudFront distribution.
-
D
Construct an AWS WAF rule to replace existing HTTP headers with the required security headers by using regular expressions.
Reveal answer details
Close answer details
Question 48
Single choice
An application is designed to run on an EC2 Instance. The applications needs to work with an S3 bucket. From a security perspective , what is the ideal way for the EC2 instance/ application to be configured? Please select:
-
A
Use the AWS access keys ensuring that they are frequently rotated.
-
B
Assign an IAM user to the application that has specific access to only that S3 bucket
-
C
Assign an IAM Role and assign it to the EC2 Instance
-
D
Assign an IAM group and assign it to the EC2 Instance
Reveal answer details
Close answer details
Correct answerC
ExplanationThe below diagram from the AWS whitepaper shows the best security practicse of allocating a role that has access to the S3 bucket  Options A,B and D are invalid because using users, groups or access keys is an invalid security practise when giving access to resources from other AWS resources. For more information on the Security Best practices, please visit the following URL: https://d1.awsstatic.com/whitepapers/Security/AWS Security Best Practices.pdl The correct answer is: Assign an IAM Role and assign it to the EC2 Instance
Question 49
Single choice
A company needs to restrict access to Amazon DynamoDB tables in the us-east1 Region for account 0123456789. All users must be denied permission to work with DynamoDB tables in us-east-1 unless the users access the tables through the following endpoint: vpce-11aa22bb. Which IAM statement will enforce this requirement?
-
A
"Statement": [ { "Sid": "AccessFromSpecificEndpoint", "Action": "dynamodb:*", "Effect": "Deny", "Resource": "arn:aws:dynamodb:us-east-1:0123456789:table/*", "Condition": { "StringEquals" : { "aws:sourceVpce": "vpce- 1laa22bb" } } } ]
-
B
"Statement": [ { "Sid": "AccessFromSpecificEndpoint", "Action": "dynamodb:*", "Effect": "Allow", "Resource": "arn:aws:dynamodb:us-east-1:0123456789:table/*", "Condition": { "StringNotEquals" : { "aws:sourceVpce": "vpce- 1laa22bb" } } } ]
-
C
"Statement": [ { "Sid": "AccessFromSpecificEndpoint", "Action": "dynamodb:*", "Effect": "Allow", "Resource": "arn:aws:dynamodb:us-east-1:0123456789:table/*", "Condition": { "StringEquals" : { "aws:sourceVpce": "vpce- 1laa22bb" } } } ]
-
D
"Statement": [ { "Sid": "AccessFromSpecificEndpoint", "Action": "dynamodb:*", "Effect": "Deny", "Resource": "arn:aws:dynamodb:us-east-1:0123456789:table/*", "Condition": { "StringNotEquals" : { "aws:sourceVpce": "vpce- 1laa22bb" } } } ]
Reveal answer details
Close answer details
Question 50
Multiple choice
Which of the following are valid event sources that are associated with web access control lists that trigger AWS WAF rules? (Choose two.)
-
A
Amazon S3 static web hosting
-
B
Amazon CloudFront distribution
-
C
Application Load Balancer
-
D
-
E
Reveal answer details
Close answer details
Correct answersB, C
ExplanationA web access control list (web ACL) gives you fine-grained control over the web requests that your Amazon API Gateway API, Amazon CloudFront distribution or Application Load Balancer responds to.
Question 51
Multiple choice
A security engineer needs to configure monitonng and auditing for AWS Lambda. Which combination of actions using AWS services should the security engineer take to accomplish this goal? (Select TWO.)
-
A
Use AWS Config to track configuration changes to Lambda functions, runtime environments, tags, handler names, code sizes, memory allocation, timeout settings, and concurrency settings, along with Lambda IAM execution role, subnet, and security group associations.
-
B
Use AWS CloudTrail to implement governance, compliance, operational, and risk auditing for Lambda.
-
C
Use Amazon Inspector to automatically monitor for vulnerabilities and perform governance, compliance, operational, and risk auditing for Lambda.
-
D
Use AWS Resource Access Manager to track configuration changes to Lambda functions, runtime environments, tags, handler names, code sizes, memory allocation, timeout settings, and concurrency settings, along with Lambda IAM execution role, subnet, and security group associations.
-
E
Use Amazon Macie to discover, classify, and protect sensitive data being executed inside the Lambda function.
Reveal answer details
Close answer details
Question 52
Single choice
A VPC endpoint for Amazon CloudWatch Logs was recently added to a company's VPC. The company's system administrator has verified that private DNS is enabled and that the appropriate route tables and security groups have been updated. The role attached to the Amazon EC2 instance is:  The CloudWatch Logs agent is running and attempting to write to a CloudWatch Logs stream in the same AWS account. However, no logs are being updated in CloudWatch Logs. What is the likely cause of this issue? 
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Question 53
Single choice
Which of the following is the most efficient way to automate the encryption of AWS CloudTrail logs using a Customer Master Key (CMK) in AWS KMS?
-
A
Use the KMS direct encrypt function on the log data every time a CloudTrail log is generated.
-
B
Use the default Amazon S3 server-side encryption with S3-managed keys to encrypt and decrypt the CloudTrail logs.
-
C
Configure CloudTrail to use server-side encryption using KMS-managed keys to encrypt and decrypt CloudTrail logs.
-
D
Use encrypted API endpoints so that all AWS API calls generate encrypted CloudTrail log entries using the TLS certificate from the encrypted API call.
Reveal answer details
Close answer details
Correct answerC
Explanationhttps://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html
Question 54
Single choice
A company recently deployed a new AWS account and wants to be notified immediately if a specific number of unauthorized AWS API requests are detected. A security engineer has turned on AWS CloudTrail for the account and is sending CloudTrail logs to Amazon CloudWatch. Which other action must the security engineer perform to receive automated alerts about unauthorized AWS API calls?
-
A
Create a CloudWatch metric filter that looks for API call error codes. Configure an alarm that is based on that metric's rate to send an Amazon Simple Notification Service (Amazon SNS) notification when the threshold is exceeded.
-
B
Configure CloudTrail to stream event data to Amazon Kinesis Data Streams. Configure an AWS Lambda function on the stream to initiate an alarm when the threshold is exceeded.
-
C
Run an Amazon Athena SQL query against CloudTrail log files for unauthorized API requests. Use Amazon QuickSight to create an operational dashboard.
-
D
Use the AWS Personal Health Dashboard to monitor the account's use of AWS services and to provide an alert if service error rates increase.
Reveal answer details
Close answer details
Correct answerC
ExplanationReferences: https://docs.aws.amazon.com/athena/latest/ug/cloudtrail-logs.html
Question 55
Single choice
A company uses multiple AWS accounts managed with AWS Organizations. Security engineers have created a standard set of security groups for all these. accounts. The security policy requires that these security groups be used for all applications and delegates modification authority to the security team only. A recent security audit found that the security groups are inconsistently implemented across accounts and that unauthorized changes have been made to the security groups. A security engineer needs to recommend a solution to improve consistency and to prevent unauthorized changes in the individual accounts in the future. Which solution should the security engineer recommend?
-
A
Use AWS Resource Access Manager to create shared resources for each required security group and apply an IAM policy that permits read-only access to the security groups only.
-
B
Create an AWS CloudFormation template that creates the required security groups Execute the template as part of configuring new accounts Enable Amazon Simple Notification Service (Amazon SNS) notifications when changes occur
-
C
Use AWS Firewall Manager to create a security group policy, enable the policy feature to identify and revert local changes, and enable automatic remediation
-
D
Use AWS Control Tower to edit the account factory template to enable the snare security groups option Apply an SCP to the OU or individual accounts that prohibits security group modifications from local account users
Reveal answer details
Close answer details
Question 56
Single choice
A large company organizes hundreds of AWS accounts in AWS Organizations in Developer, Test, and Production OUs. Developers who have full administrative privileges in their respective accounts use the accounts in the Developer OU. The company wants to allow only certain Amazon EC2 instance types to be used within the Developer OU. How can the company prevent developer accounts from launching unapproved EC2 instance types?
-
A
Create a now launch template in each AWS account in the Developer OU to deny the ec2:RunInstances API call for instance types that are not in an approved list Associate these templates with all IAM principals in the account.
-
B
Create an IAM policy to deny the ec2:RunInstances API call for instance types that are not in an approved list. Attach the policy to all IAM principals in all the AWS accounts in the Developer OU.
-
C
Use a managed SCP that is attached to the organization's root account to deny the ec2:RunInstances API call for instance types that are not in an approved list
-
D
Create an SCP to deny the ec2:RunInstances API call for instance types that are not in an approved list. Attach the policy to the Developer OU.
Reveal answer details
Close answer details
Question 57
Single choice
A Security Administrator is restricting the capabilities of company root user accounts. The company uses AWS Organizations and has enabled it for all feature sets, including consolidated billing. The top-level account is used for billing and administrative purposes, not for operational AWS resource purposes. How can the Administrator restrict usage of member root user accounts across the organization?
-
A
Disable the use of the root user account at the organizational root. Enable multi-factor authentication of the root user account for each organizational member account.
-
B
Configure IAM user policies to restrict root account capabilities for each Organizations member account.
-
C
Create an organizational unit (OU) in Organizations with a service control policy that controls usage of the root user. Add all operational accounts to the new OU.
-
D
Configure AWS CloudTrail to integrate with Amazon CloudWatch Logs and then create a metric filter for RootAccountUsage.
Reveal answer details
Close answer details
Correct answerC
ExplanationApplying a "Control Policy" in your organization. A policy applied to: 1) root applies to all accounts in the organization 2) OU applies to all accounts in the OU and to any child OUs 3) account applies to one account only Note-this requires that Acquirements: -all features are enabled for the organization in AWS Organizations -Only service control policy (SCP) are supported https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html
Question 58
Single choice
A public subnet contains two Amazon EC2 instances. The subnet has a custom network ACL. A security engineer is designing a solution to improve the subnet security. The solution must allow outbound traffic to an internet service that uses TLS through port 443. The solution also must deny inbound traffic that is destined for MySQL port 3306. Which network ACL rule set meets these requirements?
-
A
Use inbound rule 100 to allow traffic on TCP port 443. Use inbound rule 200 to deny traffic on TCP port 3306. Use outbound rule 100 to allow traffic on TCP port 443.
-
B
Use inbound rule 100 to deny traffic on TCP port 3306. Use inbound rule 200 to allow traffic on TCP port range 1024-65535. Use outbound rule 100 to allow traffic on TCP port 443.
-
C
Use inbound rule 100 to allow traffic on TCP port range 1024-65535. Use inbound rule 200 to deny traffic on TCP port 3306. Use outbound rule 100 to allow traffic on TCP port 443.
-
D
Use inbound rule 100 to deny traffic on TCP port 3306. Use inbound rule 200 to allow traffic on TCP port 443. Use outbound rule 100 to allow traffic on TCP port 443.
Reveal answer details
Close answer details
Question 59
Single choice
A company is running an application on Amazon EC2 instances in an Auto Scaling group. The application stores logs locally. A security engineer noticed that logs were lost after a scale-in event. The security engineer needs to recommend a solution to ensure the durability and availability of log data. All logs must be kept for a minimum of 1 year for auditing purposes. What should the security engineer recommend?
-
A
Within the Auto Scaling lifecycle, add a hook to create an attach an Amazon Elastic Block Store (Amazon EBS) log volume each time an EC2 instance is created. When the instance is terminated, the EBS volume can be reattached to another instance for log review.
-
B
Create an Amazon Elastic File System (Amazon EFS) file system and add a command in the user data section of the Auto Scaling launch template to mount the EFS file system during EC2 instance creation Configure a process on the instance to copy the logs once a day from an instance Amazon Elastic Block Store (Amazon EBS) volume to a directory in the EFS file system.
-
C
Build the Amazon CloudWatch agent into the AMI used in the Auto Scaling group. Configure the CloudWatch agent to send the logs to Amazon CloudWatch Logs for review.
-
D
Within the Auto Scaling lifecycle, add a lifecycle hook at the terminating state transition and alert the engineering team by using a lifecycle notification to Amazon Simple Notification Service (Amazon SNS). Configure the hook to remain in the Terminating:Wait state for 1 hour to allow manual review of the security logs prior to instance termination.
Reveal answer details
Close answer details
Question 60
Single choice
Your company has a set of EC2 Instances that are placed behind an ELB. Some of the applications hosted on these instances communicate via a legacy protocol. There is a security mandate that all traffic between the client and the EC2 Instances need to be secure. How would you accomplish this? Please select:
-
A
Use an Application Load balancer and terminate the SSL connection at the ELB
-
B
Use a Classic Load balancer and terminate the SSL connection at the ELB
-
C
Use an Application Load balancer and terminate the SSL connection at the EC2 Instances
-
D
Use a Classic Load balancer and terminate the SSL connection at the EC2 Instances
Reveal answer details
Close answer details
Correct answerD
ExplanationSince there are applications which work on legacy protocols, you need to ensure that the ELB can be used at the network layer as well and hence you should choose the Classic ELB. Since the traffic needs to be secure till the EC2 Instances, the SSL termination should occur on the Ec2 Instances. Option A and C are invalid because you need to use a Classic Load balancer since this is a legacy application. Option B is incorrect since encryption is required until the EC2 Instance For more information on HTTPS listeners for classic load balancers, please refer to below URL https://docs.aws.ama20n.com/elasticloadbalancing/latest/classic/elb-https-load-balancers.htmll The correct answer is: Use a Classic Load balancer and terminate the SSL connection at the EC2 Instances
Question 61
Multiple choice
A company uses SAML federation with AWS Identity and Access Management (IAM) to provide internal users with SSO for their AWS accounts. The company's identity provider certificate was rotated as part of its normal lifecycle. Shortly after, users started receiving the following error when attempting to log in: "Error: Response Signature Invalid (Service: AWSSecuntyTokenService; Status Code: 400; Error Code: InvalidldentltyToken)" A security engineer needs to address the immediate issue and ensure that it will not occur again. Which combination of steps should the securtty engineer take to accomplish this? (Select TWO.)
-
A
Download a new copy of the SAML metadata file from the identity provider Create a new IAM identity provider entity. Upload the new metadata file to the new IAM identity provider entity.
-
B
During the next certificate rotation period and before the current certificate expires, add a new certificate as the secondary to the identity provider. Generate a new metadata file and upload it to the IAM identity provider entity. Perform automated or manual rotation of the certificate when required.
-
C
Download a new copy of the SAML metadata file from the identity provider Upload the new metadata to the IAM identity provider entity configured for the SAML integration in question.
-
D
During the next certificate rotation period and before the current certificate expires, add a new certificate as the secondary to the identity provider. Generate a new copy of the metadata file and create a new IAM identity provider entity. Upload the metadata file to the new IAM identity provider entity. Perform automated or manual rotation of the certificate when required.
-
E
Download a new copy of the SAML metadata file from the identity provider Create a new IAM identity provider entity. Upload the new metadata file to the new IAM identity provider entity. Update the identity provider configurations to pass a new IAM identity provider entity name in the SAML assertion.
Reveal answer details
Close answer details
Correct answersB, C
Explanationhttps://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_saml.html#troubleshoot_saml_invalid-metadata
Question 62
Single choice
A water utility company uses a number of Amazon EC2 instances to manage updates to a fleet of 2,000 Internet of Things (IoT) field devices that monitor water quality. These devices each have unique access credentials. An operational safety policy requires that access to specific credentials is independently auditable. What is the MOST cost-effective way to manage the storage of credentials?
-
A
Use AWS Systems Manager to store the credentials as Secure Strings Parameters.Secure by using an AWS KMS key.
-
B
Use AWS Key Management System to store a master key, which is used to encrypt the credentials. The encrypted credentials are stored in an Amazon RDS instance.
-
C
Use AWS Secrets Manager to store the credentials.
-
D
Store the credentials in a JSON file on Amazon S3 with server-side encryption.
Reveal answer details
Close answer details
Correct answerA
Explanationhttps://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-advanced-parameters.html
Question 63
Single choice
DDoS attacks that happen at the application layer commonly target web applications with lower volumes of traffic compared to infrastructure attacks. To mitigate these types of attacks, you should probably want to include a WAF (Web Application Firewall) as part of your infrastructure. To inspect all HTTP requests, WAFs sit in-line with your application traffic. Unfortunately, this creates a scenario where WAFs can become a point of failure or bottleneck. To mitigate this problem, you need the ability to run multiple WAFs on demand during traffic spikes. This type of scaling for WAF is done via a "WAF sandwich." Which of the following statements best describes what a "WAF sandwich" is? Choose the correct answer from the options below Please select:
-
A
The EC2 instance running your WAF software is placed between your private subnets and any NATed connections to the internet.
-
B
The EC2 instance running your WAF software is placed between your public subnets and your Internet Gateway.
-
C
The EC2 instance running your WAF software is placed between your public subnets and your private subnets.
-
D
The EC2 instance running your WAF software is included in an Auto Scaling group and placed in between two Elastic load balancers.
Reveal answer details
Close answer details
Correct answerD
ExplanationThe below diagram shows how a WAF sandwich is created. Its the concept of placing the Ec2 instance which hosts the WAF software in between 2 elastic load balancers.  Option A.B and C are incorrect since the EC2 Instance with the WAF software needs to be placed in an Autoscaling Group For more information on a WAF sandwich please refer to the below Link: https://www.cloudaxis.eom/2016/11/2l/waf-sandwich/l The correct answer is: The EC2 instance running your WAF software is included in an Auto Scaling group and placed in between two Elastic load balancers.
Question 64
Single choice
A company has recently recovered from a security incident that required the restoration of Amazon EC2 instances from snapshots. After performing a gap analysis of its disaster recovery procedures and backup strategies, the company is concerned that, next time, it will not be able to recover the EC2 instances if the AWS account was compromised and Amazon EBS snapshots were deleted. All EBS snapshots are encrypted using an AWS KMS CMK. Which solution would solve this problem?
-
A
Create a new Amazon S3 bucket Use EBS lifecycle policies to move EBS snapshots to the new S3 bucket. Move snapshots to Amazon S3 Glacier using lifecycle policies, and apply Glacier Vault Lock policies to prevent deletion
-
B
Use AWS Systems Manager to distribute a configuration that performs local backups of all attached disks to Amazon S3.
-
C
Create a new AWS account with limited privileges. Allow the new account to access the AWS KMS key used to encrypt the EBS snapshots, and copy the encrypted snapshots to the new account on a recuning basis
-
D
Use AWS Backup to copy EBS snapshots to Amazon S3.
Reveal answer details
Close answer details
Question 65
Single choice
An application running on EC2 instances processes sensitive information stored on Amazon S3. The information is accessed over the Internet. The security team is concerned that the Internet connectivity to Amazon S3 is a security risk. Which solution will resolve the security concern? Please select:
-
A
Access the data through an Internet Gateway.
-
B
Access the data through a VPN connection.
-
C
Access the data through a NAT Gateway.
-
D
Access the data through a VPC endpoint for Amazon S3
Reveal answer details
Close answer details
Correct answerD
ExplanationThe AWS Documentation mentions the followii A VPC endpoint enables you to privately connect your VPC to supported AWS services and VPC endpoint services powered by PrivateLink without requiring an internet gateway, NAT device, VPN connection, or AWS Direct Connect connection. Instances in your VPC do not require public IP addresses to communicate with resources in the service. Traffic between your VPC and the other service does not leave the Amazon network. Option A.B and C are all invalid because the question specifically mentions that access should not be provided via the Internet. The correct answer is: Access the data through a VPC endpoint for Amazon S3
Question 66
Multiple choice
A security engineer must ensure that all infrastructure launched in the company AWS account be monitored for deviation from compliance rules, specifically that all EC2 instances are launched from one of a specified list of AM Is and that all attached EBS volumes are encrypted. Infrastructure not in compliance should be terminated. What combination of steps should the Engineer implement? Select 2 answers from the options given below. Please select:
-
A
Set up a CloudWatch event based on Trusted Advisor metrics
-
B
Trigger a Lambda function from a scheduled CloudWatch event that terminates non-compliant infrastructure.
-
C
Set up a CloudWatch event based on Amazon inspector findings
-
D
Monitor compliance with AWS Config Rules triggered by configuration changes
-
E
Trigger a CLI command from a CloudWatch event that terminates the infrastructure
Reveal answer details
Close answer details
Correct answersB, D
ExplanationYou can use AWS Config to monitor for such Event Option A is invalid because you cannot set Cloudwatch events based on Trusted Advisor checks. Option C is invalid Amazon inspector cannot be used to check whether instances are launched from a specific A Option E is invalid because triggering a CLI command is not the preferred option, instead you should use Lambda functions for all automation purposes. For more information on Config Rules please see the below Link: https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config-rules.html These events can then trigger a lambda function to terminate instances For more information on Cloudwatch events please see the below Link: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/WhatlsCloudWatchEvents . The correct answers are: Trigger a Lambda function from a scheduled Cloudwatch event that terminates non-compliant infrastructure., Monitor compliance with AWS Config Rules triggered by configuration changes
Question 67
Multiple choice
A company's Security Team received an email notification from the Amazon EC2 Abuse team that one or more of the company's Amazon EC2 instances may have been compromised Which combination of actions should the Security team take to respond to (be current modem? (Select TWO.)
-
A
Open a support case with the AWS Security team and ask them to remove the malicious code from the affected instance
-
B
Respond to the notification and list the actions that have been taken to address the incident
-
C
Delete all IAM users and resources in the account
-
D
Detach the internet gateway from the VPC remove aft rules that contain 0.0.0.0V0 from the security groups, and create a NACL rule to deny all traffic Inbound from the internet
-
E
Delete the identified compromised instances and delete any associated resources that the Security team did not create.
Reveal answer details
Close answer details
Question 68
Single choice
A company wants to remove all SSH keys permanently from a specific subset of its Amazon Linux 2 Amazon EC2 instances that are using the same IAM instance profile However three individuals who have IAM user accounts will need to access these instances by using an SSH session to perform critical duties How can a security engineer provide the access to meet these requirements'?
-
A
Assign an IAM policy to the instance profile to allow the EC2 instances to be managed by AWS Systems Manager Provide the IAM user accounts with permission to use Systems Manager Remove the SSH keys from the EC2 instances Use Systems Manager Inventory to select the EC2 instance and connect
-
B
Assign an IAM policy to the IAM user accounts to provide permission to use AWS Systems Manager Run Command Remove the SSH keys from the EC2 instances Use Run Command to open an SSH connection to the EC2 instance
-
C
Assign an IAM policy to the instance profile to allow the EC2 instances to be managed by AWS Systems Manager Provide the IAM user accounts with permission to use Systems Manager Remove the SSH keys from the EC2 instances Use Systems Manager Session Manager to select the EC2 instance and connect
-
D
Assign an IAM policy to the IAM user accounts to provide permission to use the EC2 service in the AWS Management Console Remove the SSH keys from the EC2 instances Connect to the EC2 instance as the ec2-user through the AWS Management Console's EC2 SSH client method
Reveal answer details
Close answer details
Correct answerC
ExplanationTo provide access to the three individuals who have IAM user accounts to access the Amazon Linux 2 Amazon EC2 instances that are using the same IAM instance profile, the most appropriate solution would be to assign an IAM policy to the instance profile to allow the EC2 instances to be managed by AWS Systems Manager, provide the IAM user accounts with permission to use Systems Manager, remove the SSH keys from the EC2 instances, and use Systems Manager Session Manager to select the EC2 instance and connect. References: : AWS Systems Manager Session Manager - AWS Systems Manager : AWS Systems Manager - AWS Management Console : AWS Identity and Access Management - AWS Management Console : Amazon Elastic Compute Cloud - Amazon Web Services : Amazon Linux 2 - Amazon Web Services: AWS Systems Manager - AWS Management Console : AWS Systems Manager - AWS Management Console : AWS Systems Manager - AWS Management Console
Question 69
Single choice
A company has a web-based application using Amazon CloudFront and running on Amazon Elastic Container Service (Amazon ECS) behind an Application Load Balancer (ALB). The ALB is terminating TLS and balancing load across ECS service tasks A security engineer needs to design a solution to ensure that application content is accessible only through CloudFront and that I is never accessible directly. How should the security engineer build the MOST secure solution?
-
A
Add an origin custom header Set the viewer protocol policy to HTTP and HTTPS Set the origin protocol pokey to HTTPS only Update the application to validate the CloudFront custom header
-
B
Add an origin custom header Set the viewer protocol policy to HTTPS only Set the origin protocol policy to match viewer Update the application to validate the CloudFront custom header.
-
C
Add an origin custom header Set the viewer protocol policy to redirect HTTP to HTTPS Set the origin protocol policy to HTTP only Update the application to validate the CloudFront custom header.
-
D
Add an origin custom header Set the viewer protocol policy to redirect HTTP to HTTPS.Set the origin protocol policy to HTTPS only Update the application to validate the CloudFront custom header
Reveal answer details
Close answer details
Question 70
Single choice
Your company has created a set of keys using the AWS KMS service. They need to ensure that each key is only used for certain services. For example , they want one key to be used only for the S3 service. How can this be achieved? Please select:
-
A
Create an IAM policy that allows the key to be accessed by only the S3 service.
-
B
Create a bucket policy that allows the key to be accessed by only the S3 service.
-
C
Use the kms:ViaService condition in the Key policy
-
D
Define an IAM user, allocate the key and then assign the permissions to the required service
Reveal answer details
Close answer details
Correct answerC
ExplanationOption A and B are invalid because mapping keys to services cannot be done via either the IAM or bucket policy Option D is invalid because keys for IAM users cannot be assigned to services. This is mentioned in the AWS Documentation The kms:ViaService condition key limits use of a customer-managed CMK to requests from particular AWS services. (AWS managed CMKs in your account, such as aws/s3, are always restricted to the AWS service that created them.) For example, you can use kms:V1aService to allow a user to use a customer managed CMK only for requests that Amazon S3 makes on their behalf. Or you can use it to deny the user permission to a CMK when a request on their behalf comes from AWS Lambda. For more information on key policy's for KMS please visit the following URL: https://docs.aws.amazon.com/kms/latest/developereuide/policy-conditions.html The correct answer is: Use the kms:ViaServtce condition in the Key policy
Question 71
Single choice
Your IT Security team has advised to carry out a penetration test on the resources in their company's AWS Account. This is as part of their capability to analyze the security of the Infrastructure. What should be done first in this regard? Please select:
-
A
Turn on Cloud trail and carry out the penetration test
-
B
Turn on VPC Flow Logs and carry out the penetration test
-
C
Submit a request to AWS Support
-
D
Use a custom AWS Marketplace solution for conducting the penetration test
Reveal answer details
Close answer details
Correct answerC
ExplanationThis concept is given in the AWS Documentation. How do I submit a penetration testing request for my AWS resources? Issue I want to run a penetration test or other simulated event on my AWS architecture. How do I get permission from AWS to do that? Resolution Before performing security testing on AWS resources, you must obtain approval from AWS. After you submit your request AWS will reply in about two business days. AWS might have additional questions about your test which can extend the approval process, so plan accordingly and be sure that your initial request is as detailed as possible. If your request is approved, you'll receive an authorization number. Option A.B and D are all invalid because the first step is to get prior authorization from AWS for penetration tests For more information on penetration testing, please visit the below URL * https://aws.amazon.com/security/penetration-testing/ * https://aws.amazon.com/premiumsupport/knowledge-center/penetration-testing/ ( The correct answer is: Submit a request to AWS Support
Question 72
Multiple choice
A company is running third-party WAF software on AWS. The company's security team discovers that the third-party WAF software has vulnerabilities that can lead to server-side request forgery (SSRF) attacks. Because of this discovery, the security team mandates that the entire AWS infrastructure must use version 2 of the instance metadata service (IMDSv2). At the planned completion of the implementation of IMDSv2, the security team uses the Amazon CloudWatch metric Amazon EC2:MetadataNoToken and determines that hundreds of old IMDSv1 requests still are occurring each day. The security team is willing to risk the availability of the company's application to finish this implementation. Which combination of steps should the security team take to complete the migration to IMDSv2 in the AWS environment? (Choose two.)
-
A
Write and enforce an IAM policy that denies the ec2:runinstances action when the ec2:MetadataHttpTokens condition key is not set to required.
-
B
Use the ec2 modify-instance-metadata-options command from the AWS CLI with the http-put- response-hop-limit 0 option.
-
C
Use the ec2 modify-instance-metadata-options command from the AWS CLI with the --http-tokens required option.
-
D
Modify instance security groups to deny all outbound HTTP traffic to 169.254.169.254.
-
E
From each of the AWS account EC2 instances run the following command: TOKEN= 'curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl- seconds: 21600" ' curl http://169.254.169.254/latest/meta-data/profile -H "X-aws-ec2-metadata-token: $TOKEN"
Reveal answer details
Close answer details
Correct answersC, E
ExplanationReferences: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html
Question 73
Single choice
A company is implementing new compliance requirements to meet customer needs. According to the new requirements, the company must not use any Amazon RDS DB instances or DB clusters that lack encryption of the underlying storage. The company needs a solution that will generate an email alert when an unencrypted DB instance or DB cluster is created. The solution also must terminate the unencrypted DB instance or DB cluster. Which solution will meet these requirements in the MOST operationally efficient manner?
-
A
Create an AWS Config managed rule to detect unencrypted RDS storage. Configure an automatic remediation action to publish messages to an Amazon Simple Notification Service (Amazon SNS) topic that includes an AWS Lambda function and an email delivery target as subscribers. Configure the Lambda function to delete the unencrypted resource.
-
B
Create an AWS Config managed rule to detect unencrypted RDS storage. Configure a manual remediation action to invoke an AWS Lambda function. Configure the Lambda function to publish messages to an Amazon Simple Notification Service (Amazon SNS) topic and to delete the unencrypted resource.
-
C
Create an Amazon EventBridge rule that evaluates RDS event patterns and is initiated by the creation of DB instances or DB clusters. Configure the rule to publish messages to an Amazon Simple Notification Service (Amazon SNS) topic that includes an AWS Lambda function and an email delivery target as subscribers. Configure the Lambda function to delete the unencrypted resource.
-
D
Create an Amazon EventBridge rule that evaluates RDS event patterns and is initiated by the creation of DB instances or DB clusters. Configure the rule to invoke an AWS Lambda function. Configure the Lambda function to publish messages to an Amazon Simple Notification Service (Amazon SNS) topic and to delete the unencrypted resource.
Reveal answer details
Close answer details
Question 74
Single choice
A company's security officer is concerned about the risk of AWS account root user logins and has assigned a security engineer to implement a notification solution for near-real-time alerts upon account root user logins. How should the security engineer meet these requirements?
-
A
Create a cron job that runs a script to download the AWS IAM security credentials file, parse the file for account root user logins, and email the security team's distribution list.
-
B
Run AWS CloudTrail logs through Amazon CloudWatch Events to detect account root user logins and trigger an AWS Lambda function to send an Amazon SNS notification to the security team's distribution list.
-
C
Save AWS CloudTrail logs to an Amazon S3 bucket in the security team's account. Process the CloudTrail logs with the security engineer's logging solution for account root user logins. Send an Amazon SNS notification to the security team upon encountering the account root user login events.
-
D
Save VPC Flow Logs to an Amazon S3 bucket in the security team's account, and process the VPC Flow Logs with their logging solutions for account root user logins. Send an Amazon SNS notification to the security team upon encountering the account root user login events.
Reveal answer details
Close answer details
Correct answerB
ExplanationReferences: https://aws.amazon.com/blogs/mt/monitor-and-notify-on-aws-account-root-user-activity/
Question 75
Multiple choice
A company is hosting sensitive data in an AWS S3 bucket. It needs to be ensured that the bucket always remains private. How can this be ensured continually? Choose 2 answers from the options given below Please select:
-
A
Use AWS Config to monitor changes to the AWS Bucket
-
B
Use AWS Lambda function to change the bucket policy
-
C
Use AWS Trusted Advisor API to monitor the changes to the AWS Bucket
-
D
Use AWS Lambda function to change the bucket ACL
Reveal answer details
Close answer details
Correct answersA, D
ExplanationOne of the AWS Blogs mentions the usage of AWS Config and Lambda to achieve this. Below is the diagram representation of this  Option C is invalid because the Trusted Advisor API cannot be used to monitor changes to the AWS Bucket Option B doesn't seems to be the most appropriate. 1. If the object is in a bucket in which all the objects need to be private and the object is not private anymore, the Lambda function makes a PutObjectAcI call to S3 to make the object private. | https:// aws.amazon.com/blogs/security/how-to-detect-and-automatically-remediate-unintended-permissions-in-amazon-s3-bbiect-acls-with-cloudwatch-events/ The following link also specifies that Create a new Lambda function to examine an Amazon S3 buckets ACL and bucket policy. If the bucket ACL is found to al public access, the Lambda function overwrites it to be private. If a bucket policy is found, the Lambda function creatt an SNS message, puts the policy in the message body, and publishes it to the Amazon SNS topic we created. Bucket policies can be complex, and overwriting your policy may cause unexpected loss of access, so this Lambda function doesn't attempt to alter your policy in any way. https://aws.amazon.com/blogs/security/how-to-use-aws-config-to-monitor-for-and-respond-to-amazon-s3- buckets-allowin Based on these facts Option D seems to be more appropriate then Option B. For more information on implementation of this use case, please refer to the Link: https://aws.amazon.com/blogs/security/how-to-use-aws-config-to-monitor-for-and-respond- to-amazon-s3-buckets-allowinj The correct answers are: Use AWS Config to monitor changes to the AWS Bucket Use AWS Lambda function to change the bucket ACL
Question 76
Single choice
Your company looks at the gaming domain and hosts several Ec2 Instances as game servers. The servers each experience user loads in the thousands. There is a concern of DDos attacks on the EC2 Instances which could cause a huge revenue loss to the company. Which of the following can help mitigate this security concern and also ensure minimum downtime for the servers. Please select:
-
A
Use VPC Flow logs to monitor the VPC and then implement NACL's to mitigate attacks
-
B
Use AWS Shield Advanced to protect the EC2 Instances
-
C
Use AWS Inspector to protect the EC2 Instances
-
D
Use AWS Trusted Advisor to protect the EC2 Instances
Reveal answer details
Close answer details
Correct answerB
ExplanationBelow is an excerpt from the AWS Documentation on some of the use cases for AWS Shield 
Question 77
Multiple choice
A company has an existing AWS account and a set of critical resources hosted in that account. The employee who was in-charge of the root account has left the company. What must be now done to secure the account. Choose 3 answers from the options given below. Please select:
-
A
Change the access keys for all IAM users.
-
B
Delete all custom created IAM policies
-
C
Delete the access keys for the root account
-
D
Confirm MFAtoa secure device
-
E
Change the password for the root account
-
F
Change the password for all IAM users
Reveal answer details
Close answer details
Correct answersC, D, E
ExplanationNow if the root account has a chance to be compromised, then you have to carry out the below steps 1. Delete the access keys for the root account 2. Confirm MFA to a secure device 3. Change the password for the root account This will ensure the employee who has left has no change to compromise the resources in AWS. Option A is invalid because this would hamper the working of the current IAM users Option B is invalid because this could hamper the current working of services in your AWS account Option F is invalid because this would hamper the working of the current IAM users For more information on IAM root user, please visit the following URL: https://docs.aws.amazon.com/IAM/latest/UserGuide/id root-user.html The correct answers are: Delete the access keys for the root account Confirm MFA to a secure device. Change the password for the root account
Question 78
Single choice
You have a set of Keys defined using the AWS KMS service. You want to stop using a couple of keys , but are not sure of which services are currently using the keys. Which of the following would be a safe option to stop using the keys from further usage. Please select:
-
A
Delete the keys since anyway there is a 7 day waiting period before deletion
-
B
-
C
-
D
Change the key material for the key
Reveal answer details
Close answer details
Correct answerB
ExplanationOption A is invalid because once you schedule the deletion and waiting period ends, you cannot come back from the deletion process. Option C and D are invalid because these will not check to see if the keys are being used or not The AWS Documentation mentions the following Deleting a customer master key (CMK) in AWS Key Management Service (AWS KMS) is destructive and potentially dangerous. It deletes the key material and all metadata associated with the CMK, and is irreversible. After a CMK is deleted you can no longer decrypt the data that was encrypted under that CMK, which means that data becomes unrecoverable. You should delete a CMK only when you are sure that you don't need to use it anymore. If you are not sure, consider disabling the CMK instead of deleting it. You can re-enable a disabled CMK if you need to use it again later, but you cannot recover a deleted CMK. For more information on deleting keys from KMS, please visit the below URL: https://docs.aws.amazon.com/kms/latest/developereuide/deleting-keys.html The correct answer is: Disable the keys
Question 79
Single choice
An organization has setup multiple IAM users. The organization wants that each IAM user accesses the IAM console only within the organization and not from outside. How can it achieve this? Please select:
-
A
Create an IAM policy with the security group and use that security group for AWS console login
-
B
Create an IAM policy with a condition which denies access when the IP address range is not from the organization
-
C
Configure the EC2 instance security group which allows traffic only from the organization's IP range
-
D
Create an IAM policy with VPC and allow a secure gateway between the organization and AWS Console
Reveal answer details
Close answer details
Correct answerB
ExplanationYou can actually use a Deny condition which will not allow the person to log in from outside. The below example shows the Deny condition to ensure that any address specified in the source address is not allowed to access the resources in aws. Option A is invalid because you don't mention the security group in the 1AM policy Option C is invalid because security groups by default don't allow traffic Option D is invalid because the 1AM policy does not have such an option For more information on 1AM policy conditions, please visit the URL: http://docs.aws.amazon.com/IAM/latest/UserGuide/accesspolexamples.html#iam-policy-example-ec2-two-condition! The correct answer is: Create an 1AM policy with a condition which denies access when the IP address range is not from the organization
Question 80
Single choice
An AWS account includes two S3 buckets: bucket1 and bucket2. The bucket2 does not have a policy defined, but bucket1 has the following bucket policy:  In addition, the same account has an IAM User named "alice", with the following IAM policy.  Which buckets can user "alice" access?
-
A
-
B
-
C
-
D
Neither bucket1 nor bucket2
Reveal answer details
Close answer details
Correct answerC
ExplanationBoth S3 policies and IAM policies can be used to grant access to buckets. IAM policies specify what actions are allowed or denied on what AWS resources (e.g. allow ec2:TerminateInstance on the EC2 instance with instance_id=i-8b3620ec). You attach IAM policies to IAM users, groups, or roles, which are then subject to the permissions you've defined. In other words, IAM policies define what a principal can do in your AWS environment. S3 bucket policies, on the other hand, are attached only to S3 buckets. S3 bucket policies specify what actions are allowed or denied for which principals on the bucket that the bucket policy is attached to (e.g. allow user Alice to PUT but not DELETE objects in the bucket). https://aws.amazon.com/blogs/security/iam-policies-and-bucket-policies-and-acls-oh-my-controlling-access-to-s3-resources/
Question 81
Multiple choice
An Amazon S3 bucket is encrypted using an AWS KMS CMK. An IAM user is unable to download objects from the S3 bucket using the AWS Management Console; however, other users can download objects from the S3 bucket. Which policies should the Security Engineer review and modify to resolve this issue? (Select three.)
-
A
-
B
-
C
-
D
-
E
Reveal answer details
Close answer details
Question 82
Multiple choice
A company is hosting a website that must be accessible to users for HTTPS traffic. Also port 22 should be open for administrative purposes. The administrator's workstation has a static IP address of 203.0.113.1/32. Which of the following security group configurations are the MOST secure but still functional to support these requirements? Choose 2 answers from the options given below
-
A
Port 443 coming from 0.0.0.0/0
-
B
Port 443 coming from 10.0.0.0/16
-
C
Port 22 coming from 0.0.0.0/0
-
D
Port 22 coming from 203.0.113.1/32
Reveal answer details
Close answer details
Correct answersA, D
ExplanationSince HTTPS traffic is required for all users on the Internet, Port 443 should be open on all IP addresses. For port 22, the traffic should be restricted to an internal subnet. Option B is invalid, because this only allow traffic from a particular CIDR block and not from the internet Option C is invalid because allowing port 22 from the internet is a security risk For more information on AWS Security Groups, please visit the following URL https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/usins-network-secunty.htmllThecorrectanswersare:Port443comingfrom0.0.0.0/0,Port22comingfrom203.0.113.1/32
Question 83
Single choice
You are building a large-scale confidential documentation web server on AWSand all of the documentation for it will be stored on S3. One of the requirements is that it cannot be publicly accessible from S3 directly, and you will need to use Cloud Front to accomplish this. Which of the methods listed below would satisfy the requirements as outlined? Choose an answer from the options below Please select:
-
A
Create an Identity and Access Management (IAM) user for CloudFront and grant access to the objects in your S3 bucket to that IAM User.
-
B
Create an Origin Access Identity (OAI) for CloudFront and grant access to the objects in your S3 bucket to that OAl.
-
C
Create individual policies for each bucket the documents are stored in and in that policy grant access to only CloudFront.
-
D
Create an S3 bucket policy that lists the CloudFront distribution ID as the Principal and the target bucket as the Amazon Resource Name (ARN).
Reveal answer details
Close answer details
Correct answerB
ExplanationIf you want to use CloudFront signed URLs or signed cookies to provide access to objects in your Amazon S3 bucket you probably also want to prevent users from accessing your Amazon S3 objects using Amazon S3 URLs. If users access your objects directly in Amazon S3, they bypass the controls provided by CloudFront signed URLs or signed cookies, for example, control over the date and time that a user can no longer access your content and control over which IP addresses can be used to access content. In addition, if user's access objects both through CloudFront and directly by using Amazon S3 URLs, CloudFront ace logs are less useful because they're incomplete. Option A is invalid because you need to create a Origin Access Identity for Cloudfront and not an IAM user Option C and D are invalid because using policies will not help fulfil the requirement For more information on Origin Access Identity please see the below Link: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restrictine-access-to-s3.htmll The correct answer is: Create an Origin Access Identity (OAI) for CloudFront and grant access to the objects in your S3 bucket to that OAI.
Question 84
Single choice
A Security Engineer must implement mutually authenticated TLS connections between containers that communicate inside a VPC. Which solution would be MOST secure and easy to maintain?
-
A
Use AWS Certificate Manager to generate certificates from a public certificate authority and deploy them to all the containers.
-
B
Create a self-signed certificate in one container and use AWS Secrets Manager to distribute the certificate to the other containers to establish trust.
-
C
Use AWS Certificate Manager Private Certificate Authority (ACM PCA) to create a subordinate certificate authority, then create the private keys in the containers and sign them using the ACM PCA API.
-
D
Use AWS Certificate Manager Private Certificate Authority (ACM PCA) to create a subordinate certificate authority, then use AWS Certificate Manager to generate the private certificates and deploy them to all the containers.
Reveal answer details
Close answer details
Question 85
Single choice
A development team recently deployed a Java application on a default AWS Elastic Beanstalk environment. The application is unable to connect to an Amazon S3 bucket that has a default configuration in the same account. What should a security engineer do to troubleshoot this issue?
-
A
Confirm that the Elastic Beanstalk service role has access to Amazon S3.
-
B
Confirm that the Elastic Beanstalk instance profile has access to Amazon S3.
-
C
Confirm that the AWSElasticBeanstalkFullAccess managed policy is attached to the Elastic Beanstalk environment.
-
D
Confirm that the S3 bucket policy allows access from the Elastic Beanstalk application ARN.
Reveal answer details
Close answer details
Correct answerD
ExplanationReferences: https://aws.amazon.com/premiumsupport/knowledge-center/elastic-beanstalk-s3-bucket-instance/
Question 86
Single choice
A large corporation is creating a multi-account strategy and needs to determine how its employees should access the AWS infrastructure. Which of the following solutions would provide the MOST scalable solution?
-
A
Create dedicated IAM users within each AWS account that employees can assume through federation based upon group membership in their existing identity provider
-
B
Use a centralized account with IAM roles that employees can assume through federation with their existing identity provider Use cross-account roles to allow the federated users to assume their target role in the resource accounts.
-
C
Configure the AWS Security Token Service to use Kerberos tokens so that users can use their existing corporate user names and passwords to access AWS resources directly
-
D
Configure the IAM trust policies within each account's role to set up a trust back to the corporation's existing identity provider allowing users to assume the role based off their SAML token
Reveal answer details
Close answer details
Correct answerB
ExplanationSource : AWS Best Pratices SRA https://docs.aws.amazon.com/prescriptive-guidance/latest/security-reference-architecture/account-structure.html
Question 87
Single choice
A company uses Amazon GuardDuty to detect threats and malicious activities in AWS accounts. The company has subscribed to a third-party threat intelligence list uploaded to an Amazon S3 bucket. How should the security engineer efficiently use the threat list across all company AWS accounts?
-
A
Ensure the S3 bucket policy allows all company AWS accounts access to the threat list. Use an AWS Lambda function to automatically add the threat list to all company AWS accounts.
-
B
Ensure GuardDuty is in master-member configuration. Add the threat list to the master account referencing the S3 object that contains the threat list.
-
C
Ensure all accounts are part of the same organization in AWS Organizations. Add the threat list to any company account within AWS Organizations.
-
D
Ensure the threat list in the S3 bucket is publicly accessible. Use an Amazon CloudWatch Events event on GuardDuty findings to match IPs against the threat list.
Reveal answer details
Close answer details
Correct answerC
ExplanationReferences: https://aws.amazon.com/blogs/aws/new-using-amazon-guardduty-to-protect-your-s3-buckets/
Question 88
Single choice
The Information Technology department has stopped using Classic Load Balancers and switched to Application Load Balancers to save costs. After the switch, some users on older devices are no longer able to connect to the website. What is causing this situation?
-
A
Application Load Balancers do not support older web browsers.
-
B
The Perfect Forward Secrecy settings are not configured correctly.
-
C
The intermediate certificate is installed within the Application Load Balancer.
-
D
The cipher suites on the Application Load Balancers are blocking connections.
Reveal answer details
Close answer details
Correct answerD
Explanationhttps://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html
Question 89
Single choice
A company has thousands of AWS Lambda functions. While reviewing the Lambda functions, a security engineer discovers that sensitive information is being stored in environment variables and is viewable as plaintext in the Lambda console. The values of the sensitive information are only a few characters long. What is the MOST cost-effective way to address this security issue?
-
A
Set up IAM policies from the Lambda console to hide access to the environment variables.
-
B
Use AWS Step Functions to store the environment variables. Access the environment variables at runtime. Use IAM permissions to restrict access to the environment variables to only the Lambda functions that require access.
-
C
Store the environment variables in AWS Secrets Manager, and access them at runtime. Use IAM permissions to restrict access to the secrets to only the Lambda functions that require access.
-
D
Store the environment variables in AWS Systems Manager Parameter Store as secure string parameters, and access them at runtime. Use IAM permissions to restrict access to the parameters to only the Lambda functions that require access.
Reveal answer details
Close answer details
Question 90
Single choice
A large government organization is moving to the cloud and has specific encryption requirements. The first workload to move requires that a customer's data be immediately destroyed when the customer makes that request. Management has asked the security team to provide a solution that will securely store the data, allow only authorized applications to perform encryption and decryption, and allow for immediate destruction of the data. Which solution will meet these requirements?
-
A
Use AWS Secrets Manager and an AWS SDK to create a unique secret for the customer-specific data.
-
B
Use AWS Key Management Service (AWS KMS) and the AWS Encryption SDK to generate and store a data encryption key for each customer.
-
C
Use AWS Key Management Service (AWS KMS) with service-managed keys to generate and store customer-specific data encryption keys.
-
D
Use AWS Key Management Service (AWS KMS) and create an AWS CloudHSM custom key store. Use CloudHSM to generate and store a new CMK for each customer.
Reveal answer details
Close answer details
Question 91
Single choice
A company uses AWS Certificate Manager (ACM) to automate the renewal of SSL/TLS certificates that the company's Elastic Load Balancers use. The company recently noticed that ACM was unable to automatically renew some certificates. These certificates have a status of "pending validation" in the ACM console. A security engineer configured the certificates by using DNS validation. The security engineer has verified that the existing certificates have not expired. What should the security engineer do to correct this issue?
-
A
Manually validate ownership of each domain in the ACM console.
-
B
Verify that the DNS CNAME for each domain matches the ACM certificate CNAME record.
-
C
Export and then reimport the certificates into ACM.
-
D
Validate the ownership of each domain by using email validation.
Reveal answer details
Close answer details
Question 92
Single choice
A company has enabled Amazon GuardDuty in all Regions as part of its security monitoring strategy. In one of the VPCs, the company hosts an Amazon EC2 instance working as an FTP server that is contacted by a high number of clients from multiple locations. This is identified by GuardDuty as a brute force attack due to the high number of connections that happen every hour. The finding has been flagged as a false positive. However, GuardDuty keeps raising the issue. A Security Engineer has been asked to improve the signal-to-noise ratio. The Engineer needs to ensure that changes do not compromise the visibility of potential anomalous behavior. How can the Security Engineer address the issue?
-
A
Disable the FTP rule in GuardDuty in the Region where the FTP server is deployed
-
B
Add the FTP server to a trusted IP list and deploy it to GuardDuty to stop receiving the notifications
-
C
Use GuardDuty filters with auto archiving enabled to close the findings
-
D
Create an AWS Lambda function that closes the finding whenever a new occurrence is reported
Reveal answer details
Close answer details
Correct answerB
ExplanationTrusted IP lists consist of IP addresses that you have whitelisted for secure communication with your AWS infrastructure and applications. GuardDuty does not generate findings for IP addresses on trusted IP lists. At any given time, you can have only one uploaded trusted IP list per AWS account per region.
Question 93
Single choice
A company is using AWS Organizations to create OUs for its accounts. The company has more than 20 accounts that are all part of the OUs. A security engineer must implement a solution to ensure that no account can stop log file delivery to AWS CloudTrail. Which solution will meet this requirement?
-
A
Use the --is-multi-region-trail option while running the create-trail command to ensure that logs are configured across all AWS Regions.
-
B
Create an SCP that includes a Deny rule for the cloudtrail:StopLogging action. Apply the SCP to all accounts in the OUs.
-
C
Create an SCP that includes an Allow rule for the cloudtrail:StopLogging action. Apply the SCP to all accounts in the OUs.
-
D
Use AWS Systems Manager to ensure that CloudTrail is always turned on.
Reveal answer details
Close answer details
Question 94
Single choice
A web application runs in a VPC on EC2 instances behind an ELB Application Load Balancer. The application stores data in an RDS MySQL DB instance. A Linux bastion host is used to apply schema updates to the database - administrators connect to the host via SSH from a corporate workstation. The following security groups are applied to the infrastructure * sgLB - associated with the ELB * sgWeb - associated with the EC2 instances. * sgDB - associated with the database * sgBastion - associated with the bastion host Which security group configuration will allow the application to be secure and functional? Please select:
-
A
sgLB :allow port 80 and 443 traffic from 0.0.0.0/0 sgWeb :allow port 80 and 443 traffic from 0.0.0.0/0 sgDB :allow port 3306 traffic from sgWeb and sgBastion sgBastion: allow port 22 traffic from the corporate IP address range
-
B
sgLB :aIlow port 80 and 443 traffic from 0.0.0.0/0 sgWeb :allow port 80 and 443 traffic from sgLB sgDB :allow port 3306 traffic from sgWeb and sgLB sgBastion: allow port 22 traffic from the VPC IP address range
-
C
sgLB :allow port 80 and 443 traffic from 0.0.0.0/0 sgWeb :allow port 80 and 443 traffic from sgLB sgDB :allow port 3306 traffic from sgWeb and sgBastion sgBastion: allow port 22 traffic from the VPC IP address range
-
D
sgLB :allow port 80 and 443 traffic from 0.0.0.0/0 sgWeb :allow port 80 and 443 traffic from sgLB sgDB :al!ow port 3306 traffic from sgWeb and sgBastion sgBastion: allow port 22 traffic from the corporate IP address range
Reveal answer details
Close answer details
Correct answerD
ExplanationThe Load Balancer should accept traffic on ow port 80 and 443 traffic from 0.0.0.0/0 The backend EC2 Instances should accept traffic from the Load Balancer The database should allow traffic from the Web server And the Bastion host should only allow traffic from a specific corporate IP address range Option A is incorrect because the Web group should only allow traffic from the Load balancer For more information on AWS Security Groups, please refer to below URL: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/usins-network-security.htmllThecorrectansweris:sgLB:allowport80and443trafficfrom0.0.0.0/0sgWeb:allowport80and443trafficfromsgLBsgDB:allowport3306trafficfromsgWebandsgBastionsgBastion:allowport22trafficfromthecorporate IP address range
Question 95
Multiple choice
A company wishes to enable Single Sign On (SSO) so its employees can login to the management console using their corporate directory identity. Which steps below are required as part of the process? Select 2 answers from the options given below. Please select:
-
A
Create a Direct Connect connection between on-premise network and AWS. Use an AD connector for connecting AWS with on-premise active directory.
-
B
Create IAM policies that can be mapped to group memberships in the corporate directory.
-
C
Create a Lambda function to assign IAM roles to the temporary security tokens provided to the users.
-
D
Create IAM users that can be mapped to the employees' corporate identities
-
E
Create an IAM role that establishes a trust relationship between IAM and the corporate directory identity provider (IdP)
Reveal answer details
Close answer details
Correct answersA, E
ExplanationCreate a Direct Connect connection so that corporate users can access the AWS account Option B is incorrect because IAM policies are not directly mapped to group memberships in the corporate directory. It is IAM roles which are mapped. Option C is incorrect because Lambda functions is an incorrect option to assign roles. Option D is incorrect because IAM users are not directly mapped to employees' corporate identities. For more information on Direct Connect, please refer to below URL: https://aws.amazon.com/directconnect/ From the AWS Documentation, for federated access, you also need to ensure the right policy permissions are in place Configure permissions in AWS for your federated users The next step is to create an IAM role that establishes a trust relationship between IAM and your organization's IdP that identifies your IdP as a principal (trusted entity) for purposes of federation. The role also defines what users authenticated your organization's IdP are allowed to do in AWS. You can use the IAM console to create this role. When you create the trust policy that indicates who can assume the role, you specify the SAML provider that you created earlier in IAM along with one or more SAML attributes that a user must match to be allowed to assume the role. For example, you can specify that only users whose SAML eduPersonOrgDN value is ExampleOrg are allowed to sign in. The role wizard automatically adds a condition to test the saml:aud attribute to make sure that the role is assumed only for sign-in to the AWS Management Console. The trust policy for the role might look like this:  For more information on SAML federation, please refer to below URL: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enabliNote:WhatdirectoriescanIusewithAWSSSO? You can connect AWS SSO to Microsoft Active Directory, running either on-premises or in the AWS Cloud. AWS SSO supports AWS Directory Service for Microsoft Active Directory, also known as AWS Managed Microsoft AD, and AD Connector. AWS SSO does not support Simple AD. See AWS Directory Service Getting Started to learn more. To connect to your on-premises directory with AD Connector, you need the following: VPC Set up a VPC with the following: 1. At least two subnets. Each of the subnets must be in a different Availability Zone. 2. The VPC must be connected to your on-premises network through a virtual private network (VPN) connection or AWS Direct Connect. 3. The VPC must have default hardware tenancy. 4. https://aws.amazon.com/single-sign-on/ 5. https://aws.amazon.com/single-sign-on/faqs/ 6. https://aws.amazon.com/blojusing-corporate-credentials/ 7. https://docs.aws.amazon.com/directoryservice/latest/admin The correct answers are: Create a Direct Connect connection between on-premise network and AWS. Use an AD connector connecting AWS with on-premise active directory.. Create an IAM role that establishes a trust relationship between IAM and corporate directory identity provider (IdP)
Question 96
Single choice
A Security Engineer has been asked to create an automated process to disable IAM user access keys that are more than three months old. Which of the following options should the Security Engineer use?
-
A
In the AWS Console, choose the IAM service and select "Users". Review the "Access Key Age" column.
-
B
Define an IAM policy that denies access if the key age is more than three months and apply to all users.
-
C
Write a script that uses the GenerateCredentialReport, GetCredentialReport, and UpdateAccessKey APIs.
-
D
Create an Amazon CloudWatch alarm to detect aged access keys and use an AWS Lambda function to disable the keys older than 90 days.
Reveal answer details
Close answer details
Correct answerC
Explanationhttps://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAccessKey.html https://docs.aws.amazon.com/IAM/latest/APIReference/API_GenerateCredentialReport.html https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetCredentialReport.html
Question 97
Single choice
In response to the past DDoS attack experiences, a Security Engineer has set up an Amazon CloudFront distribution for an Amazon S3 bucket. There is concern that some users may bypass the CloudFront distribution and access the S3 bucket directly. What must be done to prevent users from accessing the S3 objects directly by using URLs?
-
A
Change the S3 bucket/object permission so that only the bucket owner has access.
-
B
Set up a CloudFront origin access identity (OAI), and change the S3 bucket/object permission so that only the OAI has access.
-
C
Create IAM roles for CloudFront, and change the S3 bucket/object permission so that only the IAM role has access.
-
D
Redirect S3 bucket access to the corresponding CloudFront distribution.
Reveal answer details
Close answer details
Correct answerB
Explanationhttps://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html
Question 98
Single choice
A company is running a dynamic website by using an Application Load Balancer (ALB). A security engineer notices that bots from different IP addresses are using brute-force attacks to invoke a service endpoint frequently. What is the FASTEST way to mitigate this problem?
-
A
Create an AWS Lambda function to process ALB logs. Block the bots' IP addresses in the ALB's security group.
-
B
Create an AWS WAF web ACL for the ALB. Add a rate-based rule to the web ACL to block the bots.
-
C
Create an ALB listener rule. Combine source-ip and path-pattern as the conditions to match bots. Specify a fixed-response action to return an HTTP 403 status.
-
D
Create an AWS WAF web ACL for the ALB. Add a rate-based rule to a rule group to block the bots. Attach the rule to the web ACL.
Reveal answer details
Close answer details
Question 99
Single choice
A company is outsourcing its operational support to an external company. The company's security officer must implement an access solution for delegating operational support that minimizes overhead. Which approach should the security officer take to meet these requirements?
-
A
Implement Amazon Cognito identity pools with a role that uses a policy that denies the actions related to Amazon Cognito API management. Allow the external company to federate through its identity provider.
-
B
Federate AWS Identity and Access Management (IAM) with the external company's identity provider. Create an IAM role and attach a policy with the necessary permissions.
-
C
Create an IAM group for the external company. Add a policy to the group that denies IAM modifications. Securely provide the credentials to the external company.
-
D
Use AWS SSO with the external company's identity provider. Create an IAM group to map to the identity provider user group, and attach a policy with the necessary permissions.
Reveal answer details
Close answer details
Correct answerA
ExplanationReferences: https://aws.amazon.com/blogs/security/role-based-access-control-using-amazon-cognito-and-an-external-identity-provider/
Question 100
Multiple choice
A company is using an organization in AWS Organizations to manage its AWS accounts. The company runs its primary application on Amazon EC2 instances. A security engineer discovers unauthorized access in one of the company's developer AWS accounts. An investigation reveals that AWS access keys from the developer account were mistakenly added to public source code repository. Which combination of actions should the security engineer take to secure the compromised account? (Choose two.)
-
A
Rotate all the access key pairs in the compromised account.
-
B
Create security group that denies traffic from the internet. Attach the security group to all EC2 instances in the compromised account
-
C
Temporarily remove the compromised account from the organization.
-
D
Delete all EC2 key pairs in the compromised account.
-
E
Delete any potentially unauthorized IAM users in the compromised account. Change the password for all other IAM users.
Reveal answer details
Close answer details
|