SCS-C01 : AWS Certified Security – Specialty : Part 06



SCS-C01 : AWS Certified Security – Specialty : Part 06

  1. 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?

    • Use AWS KMS with AWS managed keys and the ScheduleKeyDeletion API with a PendingWindowInDays set to 0 to remove the keys if necessary.
    • Use KMS with AWS imported key material and then use the DeletelmportedKeyMaterial API to remove the key material if necessary.
    • Use AWS CloudHSM to store the keys and then use the CloudHSM API or the PKCS11 library to delete the keys if necessary.
    • Use the Systems Manager Parameter Store to store the keys and then use the service API operations to delete the key if necessary.
  2. An application uses Amazon Cognito to manage end users’ permissions when directly accessing AWS resources, including Amazon DynamoDB. A new feature request reads as follows:

    Provide a mechanism to mark customers as suspended pending investigation or suspended permanently. Customers should still be able to log in when suspended, but should not be able to make changes.

    The priorities are to reduce complexity and avoid potential for future security issues.

    Which approach will meet these requirements and priorities?

    • Create a new database field “suspended_status” and modify the application logic to validate that field when processing requests.
    • Add suspended customers to second Cognito user pool and update the application login flow to check both user pools.
    • Use Amazon Cognito Sync to push out a “suspension_status” parameter and split the IAM policy into normal users and suspended users.
    • Move suspended customers to a second Cognito group and define an appropriate IAM access policy for the group.
  3. A company stores data on an Amazon EBS volume attached to an Amazon EC2 instance. The data is asynchronously replicated to an Amazon S3 bucket. Both the EBS volume and the S3 bucket are encrypted with the same AWS KMS Customer Master Key (CMK). A former employee scheduled a deletion of that CMK before leaving the company.

    The company’s Developer Operations department learns about this only after the CMK has been deleted.

    Which steps must be taken to address this situation?

    • Copy the data directly from the EBS encrypted volume before the volume is detached from the EC2 instance.
    • Recover the data from the EBS encrypted volume using an earlier version of the KMS backing key.
    • Make a request to AWS Support to recover the S3 encrypted data.
    • Make a request to AWS Support to restore the deleted CMK, and use it to recover the data.
  4. An AWS Lambda function was misused to alter data, and a Security Engineer must identify who invoked the function and what output was produced. The Engineer cannot find any logs created by the Lambda function in Amazon CloudWatch Logs.

    Which of the following explains why the logs are not available?

    • The execution role for the Lambda function did not grant permissions to write log data to CloudWatch Logs.
    • The Lambda function was executed by using Amazon API Gateway, so the logs are not stored in CloudWatch Logs.
    • The execution role for the Lambda function did not grant permissions to write to the Amazon S3 bucket where CloudWatch Logs stores the logs.
    • The version of the Lambda function that was executed was not current.
  5. A company has Windows Amazon EC2 instances in a VPC that are joined to on-premises Active Directory servers for domain services. The security team has enabled Amazon GuardDuty on the AWS account to alert on issues with the instances.

    During a weekly audit of network traffic, the Security Engineer notices that one of the EC2 instances is attempting to communicate with a known command-and-control server but failing. This alert does not show up in GuardDuty.

    Why did GuardDuty fail to alert to this behavior?

    • GuardDuty did not have the appropriate alerts activated.
    • GuardDuty does not see these DNS requests.
    • GuardDuty only monitors active network traffic flow for command-and-control activity.
    • GuardDuty does not report on command-and-control activity.
  6. The AWS Systems Manager Parameter Store is being used to store database passwords used by an AWS Lambda function. Because this is sensitive data, the parameters are stored as type SecureString and protected by an AWS KMS key that allows access through IAM. When the function executes, this parameter cannot be retrieved as the result of an access denied error.

    Which of the following actions will resolve the access denied error?

    • Update the ssm.amazonaws.com principal in the KMS key policy to allow kms: Decrypt.
    • Update the Lambda configuration to launch the function in a VPC.
    • Add a policy to the role that the Lambda function uses, allowing kms: Decrypt for the KMS key.
    • Add lambda.amazonaws.com as a trusted entity on the IAM role that the Lambda function uses.
  7. A company’s security policy requires that VPC Flow Logs are enabled on all VPCs. A Security Engineer is looking to automate the process of auditing the VPC resources for compliance.

    What combination of actions should the Engineer take? (Choose two.)

    • Create an AWS Lambda function that determines whether Flow Logs are enabled for a given VPC.
    • Create an AWS Config configuration item for each VPC in the company AWS account.
    • Create an AWS Config managed rule with a resource type of AWS:: Lambda:: Function.
    • Create an Amazon CloudWatch Event rule that triggers on events emitted by AWS Config.
    • Create an AWS Config custom rule, and associate it with an AWS Lambda function that contains the evaluating logic.
  8. A Security Engineer is looking for a way to control access to data that is being encrypted under a CMK. The Engineer is also looking to use additional authenticated data (AAD) to prevent tampering with ciphertext.

    Which action would provide the required functionality?

    • Pass the key alias to AWS KMS when calling Encrypt and Decrypt API actions.
    • Use IAM policies to restrict access to Encrypt and Decrypt API actions.
    • Use kms:EncryptionContext as a condition when defining IAM policies for the CMK.
    • Use key policies to restrict access to the appropriate IAM groups.
  9. An application makes calls to AWS services using the AWS SDK. The application runs on Amazon EC2 instances with an associated IAM role. When the application attempts to access an object within an Amazon S3 bucket; the Administrator receives the following error message: HTTP 403: Access Denied.

    Which combination of steps should the Administrator take to troubleshoot this issue? (Choose three.)

    • Confirm that the EC2 instance’s security group authorizes S3 access.
    • Verify that the KMS key policy allows decrypt access for the KMS key for this IAM principle.
    • Check the S3 bucket policy for statements that deny access to objects.
    • Confirm that the EC2 instance is using the correct key pair.
    • Confirm that the IAM role associated with the EC2 instance has the proper privileges.
    • Confirm that the instance and the S3 bucket are in the same Region.
  10. 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?

    • Use AWS Certificate Manager to generate certificates from a public certificate authority and deploy them to all the containers.
    • Create a self-signed certificate in one container and use AWS Secrets Manager to distribute the certificate to the other containers to establish trust.
    • 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.
    • 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.
  11. The Accounting department at Example Corp. has made a decision to hire a third-party firm, AnyCompany, to monitor Example Corp.’s AWS account to help optimize costs.

    The Security Engineer for Example Corp. has been tasked with providing AnyCompany with access to the required Example Corp. AWS resources. The Engineer has created an IAM role and granted permission to AnyCompany’s AWS account to assume this role.

    When customers contact AnyCompany, they provide their role ARN for validation. The Engineer is concerned that one of AnyCompany’s other customers might deduce Example Corp.’s role ARN and potentially compromise the company’s account.

    What steps should the Engineer perform to prevent this outcome?

    • Create an IAM user and generate a set of long-term credentials. Provide the credentials to AnyCompany. Monitor access in IAM access advisor and plan to rotate credentials on a recurring basis.
    • Request an external ID from AnyCompany and add a condition with sts:Externald to the role’s trust policy.
    • Require two-factor authentication by adding a condition to the role’s trust policy with aws:MultiFactorAuthPresent.
    • Request an IP range from AnyCompany and add a condition with aws:SourceIp to the role’s trust policy.
  12. A company maintains sensitive data in an Amazon S3 bucket that must be protected using an AWS KMS CMK. The company requires that keys be rotated automatically every year.

    How should the bucket be configured?

    • Select server-side encryption with Amazon S3-managed keys (SSE-S3) and select an AWS-managed CMK.
    • Select Amazon S3-AWS KMS managed encryption keys (S3-KMS) and select a customer-managed CMK with key rotation enabled.
    • Select server-side encryption with Amazon S3-managed keys (SSE-S3) and select a customer-managed CMK that has imported key material.
    • Select server-side encryption with AWS KMS-managed keys (SSE-KMS) and select an alias to an AWS-managed CMK.
  13. 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? (Choose three.)

    • The CMK policy
    • The VPC endpoint policy
    • The S3 bucket policy
    • The S3 ACL
    • The IAM policy
  14. While analyzing a company’s security solution, a Security Engineer wants to secure the AWS account root user.

    What should the Security Engineer do to provide the highest level of security for the account?

    • Create a new IAM user that has administrator permissions in the AWS account. Delete the password for the AWS account root user.
    • Create a new IAM user that has administrator permissions in the AWS account. Modify the permissions for the existing IAM users.
    • Replace the access key for the AWS account root user. Delete the password for the AWS account root user.
    • Create a new IAM user that has administrator permissions in the AWS account. Enable multi-factor authentication for the AWS account root user.
    Explanation:
    If you continue to use the root user credentials, we recommend that you follow the security best practice to enable multi-factor authentication (MFA) for your account. Because your root user can perform sensitive operations in your account, adding an additional layer of authentication helps you to better secure your account. Multiple types of MFA are available.
  15. A Security Engineer is working with a Product team building a web application on AWS. The application uses Amazon S3 to host the static content, Amazon API Gateway to provide RESTful services; and Amazon DynamoDB as the backend data store. The users already exist in a directory that is exposed through a SAML identity provider.

    Which combination of the following actions should the Engineer take to enable users to be authenticated into the web application and call APIs? (Choose three.)

    • Create a custom authorization service using AWS Lambda.
    • Configure a SAML identity provider in Amazon Cognito to map attributes to the Amazon Cognito user pool attributes.
    • Configure the SAML identity provider to add the Amazon Cognito user pool as a relying party.
    • Configure an Amazon Cognito identity pool to integrate with social login providers.
    • Update DynamoDB to store the user email addresses and passwords.
    • Update API Gateway to use a COGNITO_USER_POOLS authorizer.
  16. While securing the connection between a company’s VPC and its on-premises data center, a Security Engineer sent a ping command from an on-premises host (IP address 203.0.113.12) to an Amazon EC2 instance (IP address 172.31.16.139). The ping command did not return a response. The flow log in the VPC showed the following:

    2 123456789010 eni-1235b8ca 203.0.113.12 172.31.16.139 0 0 1 4 336 1432917027 1432917142 ACCEPT OK

    2 123456789010 eni-1235b8ca 172.31.16.139 203.0.113.12 0 0 1 4 336 1432917094 1432917142 REJECT OK

    What action should be performed to allow the ping to work?

    • In the security group of the EC2 instance, allow inbound ICMP traffic.
    • In the security group of the EC2 instance, allow outbound ICMP traffic.
    • In the VPC’s NACL, allow inbound ICMP traffic.
    • In the VPC’s NACL, allow outbound ICMP traffic.
  17. A Security Engineer is building a Java application that is running on Amazon EC2. The application communicates with an Amazon RDS instance and authenticates with a user name and password.

    Which combination of steps can the Engineer take to protect the credentials and minimize downtime when the credentials are rotated? (Choose two.)

    • Have a Database Administrator encrypt the credentials and store the ciphertext in Amazon S3. Grant permission to the instance role associated with the EC2 instance to read the object and decrypt the ciphertext.
    • Configure a scheduled job that updates the credential in AWS Systems Manager Parameter Store and notifies the Engineer that the application needs to be restarted.
    • Configure automatic rotation of credentials in AWS Secrets Manager.
    • Store the credential in an encrypted string parameter in AWS Systems Manager Parameter Store. Grant permission to the instance role associated with the EC2 instance to access the parameter and the AWS KMS key that is used to encrypt it.
    • Configure the Java application to catch a connection failure and make a call to AWS Secrets Manager to retrieve updated credentials when the password is rotated. Grant permission to the instance role associated with the EC2 instance to access Secrets Manager.
  18. 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.)

    • Configure Amazon CloudWatch Events in the production accounts to send all S3 events to the security account event bus.
    • Enable Amazon GuardDuty in the security account, and join the production accounts as members.
    • Configure an Amazon CloudWatch Events rule in the security account to detect S3 bucket creation or modification events.
    • Enable AWS Trusted Advisor and activate email notifications for an email address assigned to the security contact.
    • 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.
    • Configure event notifications on S3 buckets for PUT, POST, and DELETE events.
  19. A company plans to migrate a sensitive dataset to Amazon S3. A Security Engineer must ensure that the data is encrypted at rest. The encryption solution must enable the company to generate its own keys without needing to manage key storage or the encryption process.

    What should the Security Engineer use to accomplish this?

    • Server-side encryption with Amazon S3-managed keys (SSE-S3)
    • Server-side encryption with AWS KMS-managed keys (SSE-KMS)
    • Server-side encryption with customer-provided keys (SSE-C)
    • Client-side encryption with an AWS KMS-managed CMK
  20. 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.)

    • Ensure that the log file integrity validation mechanism is enabled.
    • Ensure that all log files are written to at least two separate Amazon S3 buckets in the same account.
    • Ensure that Systems Administrators and Developers can edit log files, but prevent any other access.
    • Ensure that Systems Administrators and Developers with job-related need-to-know requirements only are capable of viewing – but not modifying – the log files.
    • Ensure that all log files are stored on Amazon EC2 instances that allow SSH access from the internal corporate network only.