Curated

Security Engineering 1 (3.1–3.2)

0 votes

Questions61

  1. Question 1

    Security Engineering

    An administrator creates a conditional access policy that requires MFA for all users and all cloud apps. After enabling it, the administrator is locked out of the tenant because the MFA service has an outage. What configuration should have been in place?

    Show the answer

    Correct answerC. An excluded emergency access account kept outside the policy scope

    AWhy not this: Shorter sign-in frequency forces more MFA prompts, which does nothing during an MFA outage.

    BWhy not this: Putting break-glass accounts under the same MFA grant makes them depend on the failed service, repeating the lockout.

    CWhy this is right: Excluding monitored emergency accounts from the policy preserves a recovery path when MFA or the policy itself blocks everyone.

    DWhy not this: Report-only logs would-be results without enforcing; leaving it on forever means the MFA requirement never applies.

    Break-glass accounts should be excluded from conditional access policies, protected with strong credentials and monitored, so administrators can recover when MFA or the policy fails. Including them under the same MFA grant recreates the lockout.

    Open this question
  2. Question 2

    Security Engineering

    A security team sees a valid sign-in for an employee in London, followed 20 minutes later by one for the same account from Singapore. Which conditional access signal should the team use to flag and block this pattern?

    Show the answer

    Correct answerC. Impossible travel detection based on sign-in geolocation

    AWhy not this: A time window restricts when access is allowed; both sign-ins could fall inside permitted hours.

    BWhy not this: Compliance state checks patch and configuration posture, and can't show that two sign-ins came from distant places.

    CWhy this is right: Geolocation of successive sign-ins compared against elapsed time reveals a physically impossible journey, which is the pattern described.

    DWhy not this: Certificate authentication proves a device identity but does not evaluate where the sign-in originates.

    Impossible travel compares the geolocation of consecutive sign-ins against the time between them, flagging distances that cannot be covered. Device compliance checks posture of the endpoint, not where a sign-in originates.

    Open this question
  3. Question 3

    Security Engineering

    A contractor's access to a vendor-management system must be allowed only 08:00-18:00 local time on weekdays, and any active session must end when the window closes. Users report sessions staying open at 19:00 after sign-in at 17:45. Which change enforces the requirement?

    Show the answer

    Correct answerA. Re-evaluate the time condition continuously and cap the session lifetime at the window end

    AWhy this is right: Time conditions evaluated only at authentication let sessions persist; continuous re-evaluation or a session cap ends access at window close.

    BWhy not this: Device compliance checks the endpoint at sign-in and does not terminate sessions when the time window closes.

    CWhy not this: A geofence constrains location, not duration, so sessions would still run past the permitted hours.

    DWhy not this: A 24-hour sign-in frequency lets a session last even longer past 18:00, worsening the observed behavior.

    A time condition checked only at sign-in lets sessions outlive the window. Enforcing it continuously or capping session lifetime at the window end closes sessions at 18:00. Longer sign-in frequency makes the problem worse.

    Open this question
  4. Question 4

    Security Engineering

    A company requires that finance staff reach the ERP portal only from laptops the company has enrolled and issued to them. An employee signs in with valid credentials and MFA from a personal tablet and is denied. Which conditional access control produced this result?

    Show the answer

    Correct answerD. Device registration check tied to the user's assigned managed device

    AWhy not this: Step-up asks for more proof of identity; it does not reject an unenrolled device when the user already passed MFA.

    BWhy not this: A time window evaluates when the sign-in occurs; the stem gives no timing issue and MFA already passed.

    CWhy not this: A geofence evaluates where the sign-in originates, not whether the device is enrolled or assigned to the user.

    DWhy this is right: Binding allows access only from devices enrolled and assigned to the user, so an unmanaged tablet fails despite valid credentials and MFA.

    User-to-device binding ties an identity to specific enrolled, managed devices, so valid credentials and MFA from an unregistered tablet are still denied. A step-up prompt would only ask for another factor and would not block based on which device is used.

    Open this question
  5. Question 5

    Security Engineering

    A new conditional access policy blocks access from unmanaged devices. Before enforcing it tenant-wide, the team wants to see which sign-ins would be blocked without affecting users. Which configuration should they use?

    Show the answer

    Correct answerD. Set the policy to report-only mode and review the sign-in logs

    AWhy not this: A disabled policy produces no evaluation data, and a manual inventory can't show which sign-ins would match.

    BWhy not this: Switching to require MFA changes the policy's behavior, so the logs would no longer show what the block would do.

    CWhy not this: A narrow time window limits when the policy applies and would still block users inside it, so it is not a safe preview.

    DWhy this is right: Report-only evaluates real sign-ins and records the would-be result without enforcing, so the block's impact can be assessed safely.

    Report-only mode evaluates the policy against real sign-ins and logs the outcome without enforcing it, showing the impact before enforcement. Changing the grant to MFA alters the policy's effect rather than previewing the block.

    Open this question
  6. Question 6

    Security Engineering

    A nightly batch job on three servers reads one database under a shared service account whose expiring password keeps breaking it. Policy requires rotation and that no human knows the password. What should be done?

    Show the answer

    Correct answerC. Convert it to a group managed service account

    AWhy not this: A named administrator is a user subject; MFA is interactive and fails for unattended jobs, and rights are excessive.

    BWhy not this: This breaks the rotation requirement and leaves a static secret known to people.

    CWhy this is right: It rotates its own password automatically, works across multiple servers, and keeps the secret unknown to humans.

    DWhy not this: LocalSystem is a broad local identity, not a rotated, least-privilege identity for remote database access.

    A group managed service account is a non-interactive identity whose password is rotated automatically and shared across servers without anyone knowing it, with permissions scoped to the database. Never-expire passwords violate the rotation policy.

    Open this question
  7. Question 7

    Security Engineering

    An employee's credentials and MFA succeed, yet 802.1X denies the corporate laptop, whose machine certificate expired last week. What should the engineer do?

    Show the answer

    Correct answerD. Re-enroll the laptop's machine certificate

    AWhy not this: The user's group membership is not the problem; the device is rejected before authorization.

    BWhy not this: The user already authenticates; a password reset addresses the wrong subject.

    CWhy not this: A service account is not involved in the laptop's 802.1X device authentication.

    DWhy this is right: The device identity is the expired certificate, so renewing it restores device authentication.

    The failing subject is the device, which proves its identity with a machine certificate; renewing or re-enrolling it restores authentication. Resetting the password targets the user subject, which already authenticates correctly.

    Open this question
  8. Question 8

    Security Engineering

    A user in the local Administrators group runs an installer from a standard session and it fails writing to a protected directory. The same user succeeds from an elevated prompt. What explains the failure?

    Show the answer

    Correct answerA. The process runs with the user's filtered, non-elevated token

    AWhy this is right: The process inherits the filtered token; elevating gives it the full administrative token needed for the write.

    BWhy not this: Membership is intact; the same user succeeds when elevated, so the group is not the cause.

    CWhy not this: A posture failure would restrict network access, not one write that works after elevation.

    DWhy not this: Logon-as-a-service applies to services, not to an installer launched by an interactive user.

    A process runs with the token it inherits from its launcher, and without elevation that token is the filtered standard one. Group membership is not the issue, because the same user succeeds once elevated.

    Open this question
  9. Question 9

    Security Engineering

    An administrator adds an analyst to the Finance security group, but the analyst still gets "access denied" on the Finance share until signing out and back in. What explains this?

    Show the answer

    Correct answerC. The access token was issued before the group change

    AWhy not this: The server's service account does not decide this user's rights; the user's token is evaluated.

    BWhy not this: A device certificate failure would block network authentication, and re-logon would not fix it.

    CWhy this is right: The token is built at logon and keeps the old group list; a fresh logon issues one with Finance included.

    DWhy not this: Integrity level limits a process, but a re-logon would not change it and the new group is the trigger.

    A user's group memberships are placed in the access token at logon, so a new group is not honored until a new token is issued. A machine certificate problem would block the device from the network, not cause a denial on one share that clears after re-logon.

    Open this question
  10. Question 10

    Security Engineering

    A data center's fingerprint readers admitted a contractor whose print partially matched an employee's template. Leadership accepts more rejections of valid staff to stop this. What should the engineer do?

    Show the answer

    Correct answerB. Raise the matching threshold

    AWhy not this: The crossover error rate is where false acceptance equals false rejection; it balances both and does not favor security.

    BWhy this is right: A stricter threshold requires closer matches, lowering false acceptances at the cost of more false rejections.

    CWhy not this: A looser threshold accepts weaker matches, which would raise false acceptances and admit more impostors.

    DWhy not this: Capture timeout affects how long a scan waits and has no effect on how strictly prints are matched.

    Admitting an unauthorized person is a false acceptance. A stricter matching threshold lowers the false acceptance rate and raises the false rejection rate, which leadership accepts. Tuning to the crossover error rate only balances the two errors and does not prioritize fewer false acceptances.

    Open this question
  11. Question 11

    Security Engineering

    Which of the following are biometric authentication methods? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Iris scanC. Voice recognitionD. Gait analysis

    AWhy not this: This proves a device's boot integrity from hardware measurements; it says nothing about the person.

    BWhy this is right: The iris pattern is a physical trait of the person, so it is a biometric.

    CWhy this is right: Voice patterns are a behavioral and physiological trait used to identify a person, so this is a biometric.

    DWhy this is right: The way a person walks is a behavioral trait, so it is a biometric.

    EWhy not this: A card is something you have and a PIN something you know; neither measures a trait of the person.

    Biometrics verify who a person is from physical or behavioral traits such as the iris, voice or gait. TPM-based device attestation verifies the state of a device, and a smart card with a PIN combines something you have with something you know.

    Open this question
  12. Question 12

    Security Engineering

    A conditional access policy must confirm that a laptop booted with unmodified firmware and bootloader before it receives an access token. What should the device present?

    Show the answer

    Correct answerB. A signed TPM quote of boot measurements

    AWhy not this: A fingerprint authenticates the person and says nothing about the integrity of the device's firmware or boot.

    BWhy this is right: The TPM signs measurements of the boot chain, letting a verifier confirm the device's integrity.

    CWhy not this: A session recording audits privileged activity after the fact and cannot prove boot integrity.

    DWhy not this: A trust policy defines which principals may assume a cloud role; it does not measure device state.

    Remote attestation has the device's TPM sign measurements of firmware and boot components, which a verifier compares to known-good values. A fingerprint match proves who the user is, not whether the device is in a trusted state.

    Open this question
  13. Question 13

    Security Engineering

    A mobile app's users must sign in again every 15 minutes, which matches the access token lifetime set by the identity provider. The security team wants to keep short-lived access tokens without repeated prompts. What should be implemented?

    Show the answer

    Correct answerA. Add a refresh token flow to renew access tokens

    AWhy this is right: A refresh token is exchanged for new access tokens, keeping lifetimes short and avoiding repeated sign-ins.

    BWhy not this: Storing the password on the device adds a long-lived secret to steal and is worse than a token flow.

    CWhy not this: A static API key never expires on its own and has no per-user session context, so it is weaker than tokens.

    DWhy not this: A 30-day access token means a stolen token stays useful for weeks, defeating the reason for a short lifetime.

    A refresh token lets the app obtain new short-lived access tokens without user interaction, so the access token's short lifetime stays intact. Lengthening the access token lifetime removes the benefit of short-lived tokens and enlarges the window if one is stolen.

    Open this question
  14. Question 14

    Security Engineering

    A legacy payroll application supports only username and password authentication to its database, and the password sits in plaintext in a config file in source control. What is the BEST way to remove the exposure?

    Show the answer

    Correct answerB. Store the password in a secrets vault and fetch it at runtime

    AWhy not this: The app supports only passwords, so bearer tokens cannot be used without redesigning how it authenticates.

    BWhy this is right: It keeps the password mechanism the app supports while removing it from source control and adding access control.

    CWhy not this: Certificate login is not supported by the application, so a client certificate would not be accepted.

    DWhy not this: Base64 is reversible encoding, not protection, so anyone with repository access can read the password.

    The application can only use a password, so the fix is to move that password out of the code and into a secrets vault with access control and auditing, retrieved at runtime. Tokens and certificates are stronger mechanisms but the legacy application cannot use them.

    Open this question
  15. Question 15

    Security Engineering

    After an internal CA migration, mutual TLS clients reject a service with "unable to get local issuer certificate". The leaf certificate is unexpired with a matching SAN, and the server sends only that certificate, though the new intermediate CA chains to a root every client trusts. What should the engineer do?

    Show the answer

    Correct answerC. Configure the server to send the intermediate CA certificate too

    AWhy not this: Validity is not the problem since the leaf is unexpired; a longer period does not fix a missing issuer.

    BWhy not this: The root is already trusted by every client, so importing it again does not supply the missing intermediate.

    CWhy this is right: The clients lack the intermediate needed to link the leaf to the trusted root; sending it completes the chain.

    DWhy not this: Revocation checking is separate from chain building; disabling it leaves the error and weakens security.

    Clients trust the root but cannot build a path from the leaf to it without the new intermediate, so the server must present the full chain. Importing the root is tempting, but the root is already trusted, so the missing link is the intermediate.

    Open this question
  16. Question 16

    Security Engineering

    A security team enforces application allowlisting on kiosks. The vendor of an approved application ships monthly updates that change every binary, and the team wants no rule edits per update while still blocking unsigned code. Which rule type should they use?

    Show the answer

    Correct answerD. A publisher rule based on the vendor's code-signing certificate

    AWhy not this: A blocklist permits anything not listed, so it is not an allowlist and unknown code runs.

    BWhy not this: Each update changes the hashes, so every release would need new rules.

    CWhy not this: Allows unsigned files dropped into the folder and does not verify the code's origin.

    DWhy this is right: Trusts software by signer, so signed updates run unchanged while unsigned code is denied.

    A publisher rule trusts any binary signed by the vendor's certificate, so updated files still run and unsigned code is blocked. Hash rules break on every update because each new binary has a new hash.

    Open this question
  17. Question 17

    Security Engineering

    Users hold local administrator rights only to run one legacy updater that requires elevation. Security wants to remove those rights without breaking the updater. What should the team implement?

    Show the answer

    Correct answerC. A privilege management rule that elevates only that updater for standard users

    AWhy not this: Allows the program to run but does not give it elevated rights, so it would still fail.

    BWhy not this: Limits network traffic only and has no effect on the privileges the updater needs.

    CWhy this is right: Elevates just the approved process, so users lose admin rights and the updater still works.

    DWhy not this: Monitors behavior but cannot grant the elevation the updater requires.

    Endpoint privilege management lets standard users run a specific approved application with elevated rights, enforcing least privilege. Application allowlisting only permits execution and does not grant the elevation the updater needs.

    Open this question
  18. Question 18

    Security Engineering

    An EDR alert shows ransomware-like activity on a workstation. The analyst must stop lateral spread while keeping the host powered on so memory can be captured. What should the analyst do?

    Show the answer

    Correct answerB. Use the EDR network containment feature to isolate the host

    AWhy not this: A signature entry does not stop an already running process from spreading, and it leaves the host connected.

    BWhy this is right: Isolates the host from the network but keeps it running, so spread stops and memory is preserved.

    CWhy not this: A remote wipe destroys the evidence and is a mobile device action, not containment.

    DWhy not this: Reimaging erases the memory and disk evidence and does not first contain the host.

    EDR host isolation cuts the endpoint off from the network while keeping its connection to the EDR console, so the host stays powered on and memory remains available. Reimaging or wiping destroys the volatile evidence the analyst needs.

    Open this question
  19. Question 19

    Security Engineering

    After an incident, investigators found that an attacker with local administrator rights cleared a server's event log, and host timestamps differed by several minutes, blocking correlation. Which change BEST addresses both problems?

    Show the answer

    Correct answerA. Forward logs in real time to a central collector and sync all hosts to one time source

    AWhy this is right: Off-host copies survive local log clearing, and synchronized clocks allow accurate cross-host correlation.

    BWhy not this: May alert on tampering but keeps no protected copy and does not fix time differences.

    CWhy not this: The attacker already had administrator rights, and this does not fix timestamps.

    DWhy not this: Larger or rotated local logs can still be cleared and do nothing about clock drift.

    Real-time forwarding keeps a copy the local administrator cannot erase, and a common time source makes events from different hosts correlate. Restricting permissions to Administrators fails because the attacker already held administrator rights.

    Open this question
  20. Question 20

    Security Engineering

    A web app's diagnostic page passes a user-supplied hostname to the operating system shell. Logs show the web service account launching processes the page never intended. Which attack is this?

    Show the answer

    Correct answerD. Command injection

    AWhy not this: Privilege escalation raises rights; the processes ran under the same web service account.

    BWhy not this: Lateral movement means pivoting to other hosts; the activity stays on the web server.

    CWhy not this: SQL injection abuses database queries; here the input reaches the OS shell, not a database.

    DWhy this is right: Unsanitized input interpreted by the OS shell runs attacker-chosen commands, which is command injection.

    Input handed to the OS shell and run as extra commands is command injection. SQL injection targets database queries, not the shell. The processes ran under the same web service account, so no privilege was gained and no other host was reached.

    Open this question
  21. Question 21

    Security Engineering

    Responders find that an attacker with local admin rights read lsass.exe memory and obtained domain users' NTLM hashes and Kerberos tickets. Which control most directly prevents this specific technique from recurring?

    Show the answer

    Correct answerA. Enable Credential Guard on endpoints

    AWhy this is right: Virtualization-based isolation keeps secrets out of normal LSASS memory, defeating the dump.

    BWhy not this: Perimeter SMB blocking does not stop memory reads on the host or lateral movement inside.

    CWhy not this: Disk encryption protects data at rest; the secrets were read from running memory.

    DWhy not this: Long passwords do not stop memory reads; hashes and tickets in memory are still reusable.

    Credential Guard isolates secrets from LSASS in a virtualization-based protected environment, so reading LSASS memory no longer yields usable credentials. Longer passwords do not help, since hashes and tickets in memory can still be reused.

    Open this question
  22. Question 22

    Security Engineering

    A web form escapes input and stores it safely, but a nightly report job later concatenates the stored value into a SQL statement, and attacker-supplied commands run. Which fix best addresses the root cause?

    Show the answer

    Correct answerC. Use parameterized queries in the report job

    AWhy not this: A WAF only inspects traffic to the form; the stored value reaches the database later, from the job.

    BWhy not this: HTML encoding protects browser output; it does nothing for SQL built inside the job.

    CWhy this is right: Binding stored values as parameters keeps them as data, fixing the flaw where the SQL is built.

    DWhy not this: Entry-point validation can be bypassed and leaves the vulnerable concatenation in the report job untouched.

    This is second-order injection: stored data is trusted later and concatenated into SQL. Parameterized queries at the point of use keep data separate from code. Validation or a WAF at the form does not protect the report job's vulnerable query.

    Open this question
  23. Question 23

    Security Engineering

    A standard user exploits a kernel flaw and obtains SYSTEM rights on the same workstation. Which TTP is this?

    Show the answer

    Correct answerA. Privilege escalation

    AWhy this is right: Going from standard user to SYSTEM is a gain in permissions, which is privilege escalation.

    BWhy not this: Defensive evasion hides activity from controls; the stem describes gaining rights.

    CWhy not this: Lateral movement is pivoting to other systems; this stayed on one workstation.

    DWhy not this: Credential dumping extracts stored secrets; nothing was harvested here.

    Gaining higher permissions than originally granted on the same host is privilege escalation. Lateral movement would involve reaching other systems, which did not happen here.

    Open this question
  24. Question 24

    Security Engineering

    After the identity provider rotated its signing certificate, a SaaS application rejects every SAML assertion with a signature validation error. What should the administrator do?

    Show the answer

    Correct answerC. Import the identity provider's new signing certificate into the application

    AWhy not this: Kerberos time sync is unrelated to SAML signature validation, and a KDC plays no part here.

    BWhy not this: The validity window governs time conditions in the assertion, not whether its signature verifies.

    CWhy this is right: The application verifies signatures with the IdP's trusted certificate, so the new one must replace the old.

    DWhy not this: OAuth scopes limit delegated API access and have no effect on SAML signature checks.

    The service provider validates each SAML assertion's signature against the certificate it holds for the identity provider, so it must be given the new signing certificate or refreshed metadata. Widening the validity window only affects time conditions, not signature checks.

    Open this question
  25. Question 25

    Security Engineering

    An audit fails a VPN sign-in policy that the team calls MFA: users enter a password and then answer a security question. Which two changes would make the sign-in truly multifactor? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Replace the security question with a FIDO2 security keyB. Replace the security question with a code from an authenticator app

    AWhy this is right: A security key is something you have, which pairs with the password to form two different factors.

    BWhy this is right: An app-generated code proves possession of the enrolled device, a second factor type beside the password.

    CWhy not this: Another question is still something you know, so the sign-in stays single-factor.

    DWhy not this: A PIN is something you know, the same factor type as the password.

    EWhy not this: Password length strengthens the knowledge factor but adds no second factor type.

    A password and a security question are both something you know, so the policy is single-factor. Adding a possession factor, such as a FIDO2 key or an authenticator app code, makes it multifactor. More secrets, a PIN or a longer password add only more knowledge.

    Open this question
  26. Question 26

    Security Engineering

    A mobile app team must confirm who signed in and receive that identity as a signed JSON Web Token from the identity provider, using a REST-based flow rather than XML. Which should they use?

    Show the answer

    Correct answerC. OpenID Connect

    AWhy not this: OAuth alone delegates authorization and does not define a user identity token.

    BWhy not this: Kerberos uses tickets from a KDC and is not a REST or JWT flow for mobile apps.

    CWhy this is right: OpenID Connect issues a JWT ID token over REST flows to prove who the user is.

    DWhy not this: SAML conveys identity in XML assertions, which the team ruled out.

    OpenID Connect adds an authentication layer to OAuth 2.0 and returns an ID token, a signed JWT describing the user. OAuth access tokens alone only authorize access to resources and do not convey who authenticated.

    Open this question
  27. Question 27

    Security Engineering

    A SaaS application's SAML log shows that assertions from a partner identity provider arrive at the assertion consumer service with a valid signature, a matching audience and a current validity window, yet users land with no role. What should the administrator correct?

    Show the answer

    Correct answerD. The group attribute name the IdP sends versus the application's role mapping

    AWhy not this: The assertion is inside its validity window, so adjusting conditions changes nothing.

    BWhy not this: The log shows the signature already validates, so the certificate is not the fault.

    CWhy not this: The assertion already reached the consumer service, so the endpoint registration works.

    DWhy this is right: A mismatch between the sent attribute name and the role mapping leaves an accepted assertion with no role.

    The assertion is accepted, so the problem lies in the attribute statement: the application maps roles from a named attribute, and the IdP sends group membership under a different name or format. Signature, timing and endpoint problems would reject the assertion outright.

    Open this question
  28. Question 28

    Security Engineering

    After SSO was deployed, an identity provider outage blocks every user from every connected application. Which design change best addresses this weakness of SSO?

    Show the answer

    Correct answerD. Deploy the identity provider in a highly available, redundant configuration

    AWhy not this: A PAM vault controls privileged credentials and does not make general sign-in available.

    BWhy not this: Separate local stores abandon SSO and bring back password sprawl instead of fixing the outage.

    CWhy not this: Shorter token lifetimes force more frequent sign-ins and would worsen an outage.

    DWhy this is right: Redundant identity providers keep authentication available and remove the single point of failure.

    SSO centralizes authentication, so the identity provider becomes a single point of failure; redundant, highly available deployment removes it. Local password stores would undo the benefit of SSO rather than protect against an outage.

    Open this question
  29. Question 29

    Security Engineering

    An intruder with local administrator rights cleared the event logs on a file server, leaving no record of their activity. Which change best keeps future privileged activity available to investigators and makes this tampering visible?

    Show the answer

    Correct answerB. Forward events in real time to a central SIEM that server administrators cannot modify, and alert on log-clear events

    AWhy not this: Local logs and hashes sit on a host the attacker controls, so both can be deleted or rewritten.

    BWhy this is right: Events leave the host immediately into a protected store, and alerting on log-clear events detects the tampering as it happens.

    CWhy not this: More verbose auditing creates more local data to clear and weekly review is too slow to notice tampering.

    DWhy not this: A copy on the same server stays within the attacker's reach and is only refreshed nightly, leaving gaps.

    Real-time forwarding to a store the server's administrators cannot alter keeps evidence even if local logs are wiped, and an alert on log-clear events exposes the tampering. Larger local logs or local hashing remain under the attacker's control, so they do not stop the loss.

    Open this question
  30. Question 30

    Security Engineering

    Auditors find that administrators sign in with their own named accounts but hold permanent directory administrator roles. The requirement is that each role is active only for a limited window after an approved request. Which control meets it?

    Show the answer

    Correct answerB. Just-in-time role activation with approval and automatic expiry

    AWhy not this: Reviews check whether assignments are still justified but leave the roles permanently active between reviews.

    BWhy this is right: Eligible assignments activate only after approval and expire on their own, which removes standing privilege.

    CWhy not this: MFA strengthens sign-in but does not limit when the privileged role is active.

    DWhy not this: Rotation protects shared credentials, but these are named accounts and the role would still be permanently held.

    Just-in-time activation makes assignments eligible rather than permanent, so a role is active only after approval and ends automatically. Recertification only reviews permanent assignments periodically, so privileges still stand between reviews.

    Open this question
  31. Question 31

    Security Engineering

    A workload in account A is denied when it tries to assume a role in account B. Account A's identity policy allows the assume-role action on that role, and the role's permissions policy already grants the storage access needed. What should the engineer change?

    Show the answer

    Correct answerA. Add the workload's principal to the trust policy of the role in account B

    AWhy this is right: The trust policy defines who may assume the role, and the caller is not listed there, so the assume call fails.

    BWhy not this: A permissions boundary only caps the role's effective permissions and cannot grant the ability to assume it.

    CWhy not this: Session duration controls how long credentials last once issued and has no effect on the initial denial.

    DWhy not this: Storage actions govern what the role can do after assumption, not whether the call to assume it is allowed.

    A role can be assumed only by principals its trust policy names, and a cross-account call needs both the caller's permission and that trust entry. The caller's permission exists, so the trust policy is the gap. Adding storage actions to the caller does nothing, because the denial happens at the assume step.

    Open this question
  32. Question 32

    Security Engineering

    A team rotates a shared database credential held in a secrets manager and wants no application outage. Which two practices support this? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Applications fetch the secret from the vault at runtime instead of embedding itD. Automated rotation updates the database account and stored secret together

    AWhy not this: Deleting the old version first leaves clients with no valid secret until they refetch, causing outages.

    BWhy this is right: Fetching at runtime means applications obtain the current secret after each rotation without redeployment.

    CWhy not this: A credential cached for the process lifetime goes stale at rotation and breaks authentication.

    DWhy this is right: Changing the account and the stored secret in one automated step avoids a mismatch that causes failures.

    Runtime retrieval lets applications pick up the new value, and automated rotation keeps the database and stored secret in sync. Caching at startup leaves running processes holding a stale credential after rotation.

    Open this question
  33. Question 33

    Security Engineering

    A vault rotates the JWT signing key every 30 days. After each rotation, APIs reject unexpired tokens signed with the previous key. What should the engineer change?

    Show the answer

    Correct answerA. Publish the old public key beside the new one until old tokens expire

    AWhy this is right: Keeping the old verification key available during an overlap lets in-flight tokens validate while new ones use the new key.

    BWhy not this: Rotating only after compromise abandons scheduled rotation and does not fix validation of in-flight tokens.

    CWhy not this: Longer lifetimes widen the window of tokens signed by the old key and weaken the security gain.

    DWhy not this: TLS certificates secure transport and are unrelated to which key verifies token signatures.

    Rotation needs an overlap period: the new key signs new tokens while the old public key stays available to validate tokens already issued. Lengthening token lifetimes makes the overlap problem longer and weakens the benefit of rotation.

    Open this question
  34. Question 34

    Security Engineering

    A service signs payloads, and partners must verify the signatures without being able to forge them. What should partners receive?

    Show the answer

    Correct answerD. The public key

    AWhy not this: A refresh token obtains new access tokens; it has no role in verifying payload signatures.

    BWhy not this: The private key creates signatures; giving it to partners would let them forge payloads.

    CWhy not this: A symmetric key signs and verifies with the same secret, so partners could forge signatures.

    DWhy this is right: The public key verifies signatures but cannot create them, so partners can validate without forging.

    Asymmetric signing uses a private key to sign and a public key to verify. Sharing only the public key lets partners verify but not forge. A shared symmetric key would let any holder create valid signatures.

    Open this question
  35. Question 35

    Security Engineering

    Customer data in WORM backups, which cannot be altered, must be made unrecoverable. Every backup is encrypted under one dedicated KMS key used by nothing else. What should the engineer do?

    Show the answer

    Correct answerB. Schedule destruction of the key and all its versions

    AWhy not this: Revoking certificates affects service authentication, not whether the backup data can be decrypted.

    BWhy this is right: Destroying all key versions makes the ciphertext permanently undecryptable, and the key's sole use limits side effects.

    CWhy not this: Rotation retains old key versions to decrypt existing data, so the backups stay recoverable.

    DWhy not this: A disabled key can be re-enabled, so the data is not truly unrecoverable.

    Destroying every version of the dedicated key makes the encrypted backups permanently unreadable (crypto-shredding) without altering immutable media. Rotation leaves old versions that still decrypt, and disabling is reversible.

    Open this question
  36. Question 36

    Security Engineering

    A branch office has no RADIUS server. It must authenticate Wi-Fi clients with a shared passphrase, resist offline guessing from a captured handshake, and keep past sessions protected if the passphrase later leaks. Which should be deployed?

    Show the answer

    Correct answerC. WPA3-Personal using SAE

    AWhy not this: Enhanced Open encrypts traffic but authenticates no one with a passphrase, so it fails the shared passphrase requirement.

    BWhy not this: WPA2-PSK derives keys from the passphrase, so a captured handshake can be attacked offline and a leak exposes recorded traffic, however long the passphrase.

    CWhy this is right: SAE uses the passphrase in a key exchange that blocks offline guessing and gives per-session forward secrecy, with no RADIUS server needed.

    DWhy not this: WPA3-Enterprise relies on 802.1X with a RADIUS server and certificates, and the office has no RADIUS server and uses a passphrase.

    SAE is a password-authenticated key exchange that yields a fresh key per session. A captured exchange does not allow offline guessing, and a leaked passphrase does not expose past sessions. WPA2-PSK handshakes can be cracked offline and lack forward secrecy.

    Open this question
  37. Question 37

    Security Engineering

    Users on one restored virtual workstation cannot obtain Kerberos service tickets, and the log shows a clock skew error. Users on other workstations authenticate normally. What should the administrator correct?

    Show the answer

    Correct answerD. The workstation's clock synchronization with the domain controller

    AWhy not this: OAuth refresh tokens belong to delegated API access and do not affect Kerberos ticket timestamps.

    BWhy not this: SAML signing certificates validate federation assertions and play no part in Kerberos ticket requests.

    CWhy not this: A RADIUS shared secret secures 802.1X exchanges with the authenticator, not Kerberos tickets on a domain workstation.

    DWhy this is right: Kerberos timestamps must fall within the allowed skew of the KDC, so fixing the clock restores ticket issuance.

    Kerberos tickets carry timestamps, and the KDC rejects requests when the client clock differs from its own by more than the allowed skew, 5 minutes by default. Restoring the VM left its clock wrong, so only that machine fails. SAML certificates affect federation, not Kerberos tickets.

    Open this question
  38. Question 38

    Security Engineering

    A public mobile app has no secure place to store a client secret. It must call a partner API on a user's behalf with scoped, delegated access, and a malicious app on the device must not be able to redeem an intercepted authorization code. Which OAuth 2.0 flow fits?

    Show the answer

    Correct answerD. Authorization code grant with PKCE

    AWhy not this: The password grant makes the app handle the user's credentials, which defeats delegated access without sharing passwords.

    BWhy not this: The implicit grant exposes the access token in the redirect and does not protect against interception on the device.

    CWhy not this: Client credentials authenticates the app itself with a secret, which gives no delegated user access and a public app cannot keep a secret.

    DWhy this is right: PKCE binds the authorization code to the requesting app through a code verifier, so no client secret is needed and stolen codes cannot be redeemed.

    The authorization code grant with PKCE gives a public client delegated user access. A one-time code verifier ties the code to the app that requested it, so an intercepted code is useless. Client credentials has no user context and needs a secret.

    Open this question
  39. Question 39

    Security Engineering

    An SSID is switched from WPA2-Personal to WPA3-Personal only. Newer devices join with the shared passphrase, but older laptops entering the same passphrase cannot. What should the administrator do to keep the older laptops connected?

    Show the answer

    Correct answerD. Enable transition mode so SAE and WPA2-PSK clients coexist

    AWhy not this: The passphrase is already correct; the older adapters fail because they cannot perform the SAE exchange, not because of passphrase strength.

    BWhy not this: 802.1X would need a RADIUS server and supplicant support, which is a redesign, and older adapters may lack that support as well.

    CWhy not this: Enhanced Open drops passphrase authentication entirely and would not meet the need for a shared secret.

    DWhy this is right: Transition mode accepts both SAE and WPA2-PSK, so legacy adapters that cannot do SAE still join, at some cost in protection.

    WPA3-Personal authenticates with SAE, which older adapters often cannot perform, so a correct passphrase is not enough. Transition mode lets SAE clients and WPA2-PSK clients share the SSID. A longer passphrase does not give an adapter SAE support.

    Open this question
  40. Question 40

    Security Engineering

    Auditors flag that 40 administrators hold permanent domain admin rights although they need them only during change windows. Which PAM capability addresses this finding?

    Show the answer

    Correct answerA. Just-in-time privilege elevation with time-bound approval

    AWhy this is right: Just-in-time elevation issues privileges on request for a limited time, so no one holds permanent domain admin rights.

    BWhy not this: MFA verifies who signs in but does not remove the standing privileges that the audit flagged.

    CWhy not this: Identity proofing confirms a person's identity at enrollment and does not limit when privileges are granted.

    DWhy not this: SSO reduces repeated logins and has no effect on how long privileges are held.

    Just-in-time elevation grants privileged rights only for an approved window and then removes them, which eliminates standing privilege. MFA strengthens sign-in but leaves the permanent rights in place.

    Open this question
  41. Question 41

    Security Engineering

    An endpoint privilege management rule elevates any file named setup.exe that runs from a user's Downloads folder. A tester renames a malicious program to setup.exe, places it there and gains administrator rights. Which rule change BEST fixes this?

    Show the answer

    Correct answerC. Match elevation on the installer's publisher signature or file hash

    AWhy not this: The user would type the password and the renamed program would still be elevated.

    BWhy not this: Logging records the elevation after it happens but still grants administrator rights to the renamed file.

    CWhy this is right: A signature or hash identifies the approved installer itself, so a renamed program no longer matches the rule.

    DWhy not this: The renamed program is still elevated whenever it runs within the allowed hours.

    Anyone can choose a file's name and location, so a rule keyed on them elevates whatever is dropped there. Matching on the publisher's code signature or the file's hash ties elevation to the approved installer itself. Prompts, logging and time windows still elevate the renamed program.

    Open this question
  42. Question 42

    Security Engineering

    An anti-malware product misses a polymorphic sample whose file hash changes with every infection. Which two capabilities would MOST improve detection of it? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Sandbox detonation to observe a suspicious file's runtime behaviorC. Behavioral heuristics that watch for malicious process actions

    AWhy this is right: Detonating the file shows its actual behavior regardless of how its bytes were altered.

    BWhy not this: Scan timing does not change the detection method, and signature scanning would still miss the variant.

    CWhy this is right: Behavior-based detection flags what the code does, which stays the same when its hash changes.

    DWhy not this: A hash feed lists known samples only, so a freshly mutated variant will not appear in it.

    EWhy not this: Hash signatures are tied to specific samples, so more frequent updates still miss a new variant.

    FWhy not this: Encryption protects data at rest and has no bearing on detecting malicious code.

    Polymorphic malware defeats hash and signature matching, so detection must rely on what the code does: behavioral heuristics and dynamic analysis in a sandbox both do that. Faster signature or hash updates still match only samples already seen.

    Open this question
  43. Question 43

    Security Engineering

    What does SELinux use to confine processes and restrict their access to files on a Linux host?

    Show the answer

    Correct answerB. Mandatory access control policy based on security labels

    AWhy not this: Packet filtering is a firewall function and is not how SELinux confines processes.

    BWhy this is right: SELinux compares process and file labels against a central policy that users cannot override.

    CWhy not this: Signature scanning is anti-malware behavior, not an access control mechanism.

    DWhy not this: Owner-set permissions are standard discretionary access control, not what SELinux enforces.

    SELinux enforces a system-wide mandatory access control policy that compares the security context labels of processes and files, regardless of file ownership. Owner-set permissions are discretionary access control, which SELinux adds to rather than replaces.

    Open this question
  44. Question 44

    Security Engineering

    A payment server's encrypted traffic keeps network sensors from inspecting payloads, and change control bars automated blocking until rules are tuned. The team still wants exploit attempts against local services stopped eventually. What should they deploy?

    Show the answer

    Correct answerC. HIPS in alert-only mode, then blocking after tuning

    AWhy not this: HIDS only detects and alerts, so it cannot stop exploit attempts on its own.

    BWhy not this: A network IPS cannot read the encrypted payloads, and inline blocking would violate the change-control restriction.

    CWhy this is right: Host-level inspection sees decrypted activity, can start alert-only and later block exploit attempts.

    DWhy not this: A host firewall filters by port and address and does not inspect exploit behavior on permitted ports.

    A HIPS sees activity on the host after decryption, can run in detect-only mode during tuning, and can then be switched to blocking. A network IPS cannot inspect the encrypted payloads, and a HIDS can alert but never block.

    Open this question
  45. Question 45

    Security Engineering

    A company's annual external penetration test covers only the IP ranges in its asset register. Weeks after the last test, attackers compromise a marketing microsite that a contractor launched on a cloud host outside those ranges. Which capability BEST closes this gap?

    Show the answer

    Correct answerB. Continuous external discovery of internet-facing assets tied to the company's domains

    AWhy not this: More frequent tests of the same registered ranges still never look at hosts outside them.

    BWhy this is right: Discovery from DNS, certificates and internet scans finds exposed hosts the register does not list, so they can be assessed or removed.

    CWhy not this: A WAF protects the applications it sits in front of and does nothing for a host nobody knows about.

    DWhy not this: Internal credentialed scans assess known servers and do not find an internet-facing host in an outside cloud account.

    Attack surface monitoring has to find what the organization does not already know about. Continuous external discovery searches DNS, certificate transparency logs and internet scan data for assets linked to the company's domains, so an unregistered host appears as soon as it is exposed. Testing or protecting only registered ranges leaves unknown assets unseen.

    Open this question
  46. Question 46

    Security Engineering

    A server's EDR agent stops reporting, and minutes later its local Security log records that the log was cleared (Event ID 1102). Which conclusion is best supported?

    Show the answer

    Correct answerC. Defensive evasion: agent disabled and logs cleared

    AWhy not this: Dumping targets LSASS memory; neither a silent agent nor a cleared log shows credentials being read.

    BWhy not this: Normal rotation archives logs and does not produce a cleared-log event alongside a silent EDR agent.

    CWhy this is right: Disabling monitoring and erasing logs are classic attempts to hide an intruder's activity.

    DWhy not this: Nothing shows connections to other hosts; the evidence only shows monitoring and logs being tampered with.

    Stopping the security agent and clearing the log are indicator removal, a defensive evasion tactic aimed at hiding activity. Routine rotation does not clear the Security log and would not coincide with an agent going silent unexpectedly.

    Open this question
  47. Question 47

    Security Engineering

    Endpoint telemetry shows unapproved code running on user workstations after phishing attachments were opened. Which four controls reduce unauthorized execution on these endpoints? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. Block Office macros in files that come from the internetB. Enforce PowerShell Constrained Language Mode for standard usersC. Disable autorun and block execution from removable mediaD. Block execution from user-writable folders such as Downloads and Temp

    AWhy this is right: Macros let a document launch code the user never meant to run; blocking them removes that path.

    BWhy this is right: Constrained Language Mode limits what scripts can do, so attacker-supplied PowerShell cannot run freely.

    CWhy this is right: Autorun and removable media can launch code without approval; blocking them closes that route.

    DWhy this is right: Payloads usually land in folders users can write to; denying execution there blocks them.

    EWhy not this: Credential Guard protects secrets in LSASS from dumping; it does not stop unapproved programs or scripts from running.

    FWhy not this: BitLocker protects data on a lost or stolen disk; it does not stop unapproved code from running on a live system.

    Unauthorized execution is controlled by limiting the ways unapproved code can start: macros, unrestricted scripting, user-writable paths and removable media. Credential Guard protects LSASS secrets from credential dumping and does not stop programs or scripts from running.

    Open this question
  48. Question 48

    Security Engineering

    Intruders on a server run only built-in tools such as PowerShell and WMI, so no new binaries are written and allowlisting raises no alerts. Which technique does this describe?

    Show the answer

    Correct answerB. Living off the land

    AWhy not this: Privilege escalation raises rights; the stem is about avoiding detection, not gaining higher permissions.

    BWhy this is right: Abusing native, trusted tools avoids new binaries and allowlist alerts, which is how it evades defenses.

    CWhy not this: Credential dumping extracts stored secrets; nothing in the stem shows credentials being harvested.

    DWhy not this: Injection places code in another process's memory; the stem describes native tools being used, not code being injected.

    Living off the land uses tools already trusted on the host so that no new files trigger detection, which makes it defensive evasion. Process injection runs code inside another process's memory and is not defined by using native administration tools.

    Open this question
  49. Question 49

    Security Engineering

    An attacker who compromised one workstation authenticates to dozens of others within minutes using the built-in local Administrator account, which has the same password on every image. No malware is dropped and no domain accounts are used. Which control best stops this movement?

    Show the answer

    Correct answerD. Unique rotated local admin passwords per host

    AWhy not this: A longer password still produces the same reusable hash on every host, so movement continues.

    BWhy not this: It protects domain credentials held by LSASS; the shared local account hash can still be reused on other hosts.

    CWhy not this: No malware is dropped; built-in authentication is used, so allowlisting has nothing to block.

    DWhy this is right: Each host gets a different password, so a credential taken from one workstation fails on all others.

    Because every host shares the same local Administrator credential, one captured hash opens all of them. Unique, rotated passwords per host (Windows LAPS) make a stolen credential useless elsewhere. Credential Guard protects domain credentials in LSASS and does not break reuse of a shared local account.

    Open this question
  50. Question 50

    Security Engineering

    Servers built from one hardened image drift as administrators make manual changes. The team wants unapproved changes reverted automatically to the approved baseline. What should they implement?

    Show the answer

    Correct answerA. A desired-state configuration tool enforcing a version-controlled baseline

    AWhy this is right: It continuously compares hosts to the stored baseline and reapplies approved settings, reverting drift automatically.

    BWhy not this: File integrity monitoring reports changes but does not restore the baseline, so the drift remains.

    CWhy not this: Limiting shells may reduce manual changes but does not detect drift or restore the approved settings.

    DWhy not this: Scans report missing patches and weaknesses periodically; they neither track baseline drift nor revert anything.

    A configuration management tool in desired-state mode compares each server with a version-controlled baseline and reapplies it, which corrects drift without manual work. File integrity monitoring only detects changes and leaves the servers in the drifted state.

    Open this question