When Hurricane Sandy lashed the southern coast of Brooklyn in October of 2012, the neighborhood of Sheepshead Bay, with its quaint bungalows and low-slung buildings, was buffeted by up to 10 feet of rushing seawater.

Last week, sunbathers lounged on a pool deck high above the bay here, on a block that was devastated by the storm. They were some of the first residents of 1 Brooklyn Bay, the recently completed 30-story condo and rental tower that is the tallest building in this part of Brooklyn. It is also in one of the riskiest flood zones in the city.

“This was built specifically with Sandy in mind,” said Jason Muss, one of the developers, on a tour of the new luxury tower, where units range from $995,000 for a two-bedroom to $3.71 million for a four-bedroom penthouse — prices that rival more expensive Brooklyn neighborhoods, testing the limits for the area. About two-thirds of the 56 condos have sold since last June, he said.

In addition to an outdoor bocce court, a dog run and poolside cabanas, there are less obvious comforts. The mechanical systems are above ground to prevent power and heating malfunctions in the event of flooding, and the lobby was built far above the flood plain — luxuries most of the homes in the area can neither adopt nor afford.