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

  1. The Security team believes that a former employee may have gained unauthorized access to AWS resources sometime in the past 3 months by using an identified access key.

    What approach would enable the Security team to find out what the former employee may have done within AWS?

    • Use the AWS CloudTrail console to search for user activity.
    • Use the Amazon CloudWatch Logs console to filter CloudTrail data by user.
    • Use AWS Config to see what actions were taken by the user.
    • Use Amazon Athena to query CloudTrail logs stored in Amazon S3.
  2. The Security Engineer implemented a new vault lock policy for 10TB of data and called initiate-vault-lock 12 hours ago. The Audit team identified a typo that is allowing incorrect access to the vault.

    What is the MOST cost-effective way to correct this?

    • Call the abort-vault-lock operation, fix the typo, and call the initiate-vault-lock again.
    • Copy the vault data to Amazon S3, delete the vault, and create a new vault with the data.
    • Update the policy, keeping the vault lock in place.
    • Update the policy and call initiate-vault-lock again to apply the new policy.
  3. A company wants to control access to its AWS resources by using identities and groups that are defined in its existing Microsoft Active Directory.

    What must the company create in its AWS account to map permissions for AWS services to Active Directory user attributes?

    • AWS IAM groups
    • AWS IAM users
    • AWS IAM roles
    • AWS IAM access keys
  4. A company has contracted with a third party to audit several AWS accounts. To enable the audit, cross-account IAM roles have been created in each account targeted for audit. The Auditor is having trouble accessing some of the accounts.

    Which of the following may be causing this problem? (Choose three.)

    • The external ID used by the Auditor is missing or incorrect.
    • The Auditor is using the incorrect password.
    • The Auditor has not been granted sts:AssumeRole for the role in the destination account.
    • The Amazon EC2 role used by the Auditor must be set to the destination account role.
    • The secret key used by the Auditor is missing or incorrect.
    • The role ARN used by the Auditor is missing or incorrect.
  5. Compliance requirements state that all communications between company on-premises hosts and EC2 instances be encrypted in transit. Hosts use custom proprietary protocols for their communication, and EC2 instances need to be fronted by a load balancer for increased availability.

    Which of the following solutions will meet these requirements?

    • Offload SSL termination onto an SSL listener on a Classic Load Balancer, and use a TCP connection between the load balancer and the EC2 instances.
    • Route all traffic through a TCP listener on a Classic Load Balancer, and terminate the TLS connection on the EC2 instances.
    • Create an HTTPS listener using an Application Load Balancer, and route all of the communication through that load balancer.
    • Offload SSL termination onto an SSL listener using an Application Load Balancer, and re-spawn and SSL connection between the load balancer and the EC2 instances.
  6. An application is currently secured using network access control lists and security groups. Web servers are located in public subnets behind an Application Load Balancer (ALB); application servers are located in private subnets.

    How can edge security be enhanced to safeguard the Amazon EC2 instances against attack? (Choose two.)

    • Configure the application’s EC2 instances to use NAT gateways for all inbound traffic.
    • Move the web servers to private subnets without public IP addresses.
    • Configure AWS WAF to provide DDoS attack protection for the ALB.
    • Require all inbound network traffic to route through a bastion host in the private subnet.
    • Require all inbound and outbound network traffic to route through an AWS Direct Connect connection.
  7. 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?

    • 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.
    • Configure IAM user policies to restrict root account capabilities for each Organizations member account.
    • 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.
    • Configure AWS CloudTrail to integrate with Amazon CloudWatch Logs and then create a metric filter for RootAccountUsage.
  8. A Systems Engineer has been tasked with configuring outbound mail through Simple Email Service (SES) and requires compliance with current TLS standards.

    The mail application should be configured to connect to which of the following endpoints and corresponding ports?

    • email.us-east-1.amazonaws.com over port 8080
    • email-pop3.us-east-1.amazonaws.com over port 995
    • email-smtp.us-east-1.amazonaws.com over port 587
    • email-imap.us-east-1.amazonaws.com over port 993
  9. A threat assessment has identified a risk whereby an internal employee could exfiltrate sensitive data from production host running inside AWS (Account 1). The threat was documented as follows:

    Threat description: A malicious actor could upload sensitive data from Server X by configuring credentials for an AWS account (Account 2) they control and uploading data to an Amazon S3 bucket within their control.

    Server X has outbound internet access configured via a proxy server. Legitimate access to S3 is required so that the application can upload encrypted files to an S3 bucket. Server X is currently using an IAM instance role. The proxy server is not able to inspect any of the server communication due to TLS encryption.

    Which of the following options will mitigate the threat? (Choose two.)

    • Bypass the proxy and use an S3 VPC endpoint with a policy that whitelists only certain S3 buckets within Account 1.
    • Block outbound access to public S3 endpoints on the proxy server.
    • Configure Network ACLs on Server X to deny access to S3 endpoints.
    • Modify the S3 bucket policy for the legitimate bucket to allow access only from the public IP addresses associated with the application server.
    • Remove the IAM instance role from the application server and save API access keys in a trusted and encrypted application config file.
  10. A company will store sensitive documents in three Amazon S3 buckets based on a data classification scheme of “Sensitive,” “Confidential,” and “Restricted.” The security solution must meet all of the following requirements:
    – Each object must be encrypted using a unique key.
    – Items that are stored in the “Restricted” bucket require two-factor authentication for decryption.
    – AWS KMS must automatically rotate encryption keys annually.

    Which of the following meets these requirements?

    • Create a Customer Master Key (CMK) for each data classification type, and enable the rotation of it annually. For the “Restricted” CMK, define the MFA policy within the key policy. Use S3 SSE-KMS to encrypt the objects.
    • Create a CMK grant for each data classification type with EnableKeyRotation and MultiFactorAuthPresent set to true. S3 can then use the grants to encrypt each object with a unique CMK.
    • Create a CMK for each data classification type, and within the CMK policy, enable rotation of it annually, and define the MFA policy. S3 can then create DEK grants to uniquely encrypt each object within the S3 bucket.
    • Create a CMK with unique imported key material for each data classification type, and rotate them annually. For the “Restricted” key material, define the MFA policy in the key policy. Use S3 SSE-KMS to encrypt the objects.
  11. An organization wants to deploy a three-tier web application whereby the application servers run on Amazon EC2 instances. These EC2 instances need access to credentials that they will use to authenticate their SQL connections to an Amazon RDS DB instance. Also, AWS Lambda functions must issue queries to the RDS database by using the same database credentials.

    The credentials must be stored so that the EC2 instances and the Lambda functions can access them. No other access is allowed. The access logs must record when the credentials were accessed and by whom.

    What should the Security Engineer do to meet these requirements?

    • Store the database credentials in AWS Key Management Service (AWS KMS). Create an IAM role with access to AWS KMS by using the EC2 and Lambda service principals in the role’s trust policy. Add the role to an EC2 instance profile. Attach the instance profile to the EC2 instances. Set up Lambda to use the new role for execution.
    • Store the database credentials in AWS KMS. Create an IAM role with access to KMS by using the EC2 and Lambda service principals in the role’s trust policy. Add the role to an EC2 instance profile. Attach the instance profile to the EC2 instances and the Lambda function.
    • Store the database credentials in AWS Secrets Manager. Create an IAM role with access to Secrets Manager by using the EC2 and Lambda service principals in the role’s trust policy. Add the role to an EC2 instance profile. Attach the instance profile to the EC2 instances and the Lambda function.
    • Store the database credentials in AWS Secrets Manager. Create an IAM role with access to Secrets Manager by using the EC2 and Lambda service principals in the role’s trust policy. Add the role to an EC2 instance profile. Attach the instance profile to the EC2 instances. Set up Lambda to use the new role for execution.
  12. A company has a customer master key (CMK) with imported key materials. Company policy requires that all encryption keys must be rotated every year.

    What can be done to implement the above policy?

    • Enable automatic key rotation annually for the CMK.
    • Use AWS Command Line Interface to create an AWS Lambda function to rotate the existing CMK annually.
    • Import new key material to the existing CMK and manually rotate the CMK.
    • Create a new CMK, import new key material to it, and point the key alias to the new CMK.
  13. 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?

    • Use AWS Systems Manager to store the credentials as Secure Strings Parameters. Secure by using an AWS KMS key.
    • 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.
    • Use AWS Secrets Manager to store the credentials.
    • Store the credentials in a JSON file on Amazon S3 with server-side encryption.
  14. An organization is using Amazon CloudWatch Logs with agents deployed on its Linux Amazon EC2 instances. The agent configuration files have been checked and the application log files to be pushed are configured correctly. A review has identified that logging from specific instances is missing.

    Which steps should be taken to troubleshoot the issue? (Choose two.)

    • Use an EC2 run command to confirm that the “awslogs” service is running on all instances.
    • Verify that the permissions used by the agent allow creation of log groups/streams and to put log events.
    • Check whether any application log entries were rejected because of invalid time stamps by reviewing /var/cwlogs/rejects.log.
    • Check that the trust relationship grants the service “cwlogs.amazonaws.com” permission to write objects to the Amazon S3 staging bucket.
    • Verify that the time zone on the application servers is in UTC.
  15. A Security Engineer must design a solution that enables the incident Response team to audit for changes to a user’s IAM permissions in the case of a security incident.

    How can this be accomplished?

    • Use AWS Config to review the IAM policy assigned to users before and after the incident.
    • Run the GenerateCredentialReport via the AWS CLI, and copy the output to Amazon S3 daily for auditing purposes.
    • Copy AWS CloudFormation templates to S3, and audit for changes from the template.
    • Use Amazon EC2 Systems Manager to deploy images, and review AWS CloudTrail logs for changes.
  16. A company has complex connectivity rules governing ingress, egress, and communications between Amazon EC2 instances. The rules are so complex that they cannot be implemented within the limits of the maximum number of security groups and network access control lists (network ACLs).

    What mechanism will allow the company to implement all required network rules without incurring additional cost?

    • Configure AWS WAF rules to implement the required rules.
    • Use the operating system built-in, host-based firewall to implement the required rules.
    • Use a NAT gateway to control ingress and egress according to the requirements.
    • Launch an EC2-based firewall product from the AWS Marketplace, and implement the required rules in that product.
  17. An IAM user with fill EC2 permissions could bot start an Amazon EC2 instance after it was stopped for a maintenance task. Upon starting the instance, the instance state would change to “Pending”, but after a few seconds, it would switch back to “Stopped”.

    An inspection revealed that the instance has attached Amazon EBS volumes that were encrypted by using a Customer Master Key (CMK). When these encrypted volumes were detached, the IAM user was able to start the EC2 instances.

    The IAM user policy is as follows:

    SCS-C01 AWS Certified Security – Specialty Part 01 Q17 001
    SCS-C01 AWS Certified Security – Specialty Part 01 Q17 001

    What additional items need to be added to the IAM user policy? (Choose two.)

    • kms:GenerateDataKey
    • kms:Decrypt
    • kms:CreateGrant
    • “Condition”: {
      “Bool”: {
      “kms:ViaService”: “ec2.us-west-2.amazonaws.com”
      }
      }
    • “Condition”: {
      “Bool”: {
      “kms:GrantIsForAWSResource”: true
      }
      }
  18. A Security Administrator has a website hosted in Amazon S3. The Administrator has been given the following requirements:
    – Users may access the website by using an Amazon CloudFront distribution.
    – Users may not access the website directly by using an Amazon S3 URL.

    Which configurations will support these requirements? (Choose two.)

    • Associate an origin access identity with the CloudFront distribution.
    • Implement a “Principal”: “cloudfront.amazonaws.com” condition in the S3 bucket policy.
    • Modify the S3 bucket permissions so that only the origin access identity can access the bucket contents.
    • Implement security groups so that the S3 bucket can be accessed only by using the intended CloudFront distribution.
    • Configure the S3 bucket policy so that it is accessible only through VPC endpoints, and place the CloudFront distribution into the specified VPC.
  19. 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

    SCS-C01 AWS Certified Security – Specialty Part 01 Q19 002
    SCS-C01 AWS Certified Security – Specialty Part 01 Q19 002

    Lambda function execution role

    SCS-C01 AWS Certified Security – Specialty Part 01 Q19 003
    SCS-C01 AWS Certified Security – Specialty Part 01 Q19 003

    What is causing the error?

    • The Lambda function does not have permissions to start the Athena query execution.
    • The Security Engineer does not have permissions to start the Athena query execution.
    • The Athena service does not support invocation through Lambda.
    • The Lambda function does not have permissions to access the CloudTrail S3 bucket.
  20. A company requires that IP packet data be inspected for invalid or malicious content.

    Which of the following approaches achieve this requirement? (Choose two.)

    • Configure a proxy solution on Amazon EC2 and route all outbound VPC traffic through it. Perform inspection within proxy software on the EC2 instance.
    • Configure the host-based agent on each EC2 instance within the VPC. Perform inspection within the host-based agent.
    • Enable VPC Flow Logs for all subnets in the VPC. Perform inspection from the Flow Log data within Amazon CloudWatch Logs.
    • Configure Elastic Load Balancing (ELB) access logs. Perform inspection from the log data within the ELB access log files.
    • Configure the CloudWatch Logs agent on each EC2 instance within the VPC. Perform inspection from the log data within CloudWatch Logs.
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments