Ams has security checks at the gate so you were land side ish, (apart from immigration) from stepping off the air bridge until you went through screening at the gate on the out bound flight. Pax in the gate are seperated from everyone else. Places with central search tend to separate pax and screen transfers before allowing them into departures.